Oops... that's EdgeNGramTokenFilter in Lucene.
-- Jack Krupansky
-Original Message-
From: Jack Krupansky
Sent: Wednesday, July 04, 2012 4:52 PM
To: java-user@lucene.apache.org
Subject: Re: Starts with Query - Return like search
Here's a Solr field type that supports ed
e-
From: Hiren Shah
Sent: Wednesday, July 04, 2012 3:20 PM
To: java-user@lucene.apache.org
Subject: Re: Starts with Query - Return like search
Hi Jack
This needs to be taken care while indexing?Where can i get the code for the
edgegram indexing and then searching.?
-Hiren
On Wed, Jul 4, 2012
e.
>
> -- Jack Krupansky
>
> -Original Message- From: Ian Lea
> Sent: Wednesday, July 04, 2012 4:00 AM
> To: java-user@lucene.apache.org
> Subject: Re: Starts with Query - Return like search
>
>
> In fact there is an FAQ entry Can I combine wildcard and phra
wildcards. It isn't great for
all situations, but maybe it would work well for your case.
-- Jack Krupansky
-Original Message-
From: Ian Lea
Sent: Wednesday, July 04, 2012 4:00 AM
To: java-user@lucene.apache.org
Subject: Re: Starts with Query - Return like search
In fact there is
Please find the code here
package org.lucenesample;
import org.apache.lucene.search.Query;
import org.apache.lucene.*;
import org.apache.lucene.analysis.*;
import org.apache.lucene.analysis.standard.*;
import org.apache.lucene.analysis.standard.std31.*;
import org.apache.lucene.analysis.tokenattr
In fact there is an FAQ entry Can I combine wildcard and phrase
search, e.g. "foo ba*"? at
http://wiki.apache.org/lucene-java/LuceneFAQ#Can_I_combine_wildcard_and_phrase_search.2C_e.g._.22foo_ba.2A.22.3F
which suggests you extend the QueryParser to build a MultiPhraseQuery.
There's also ComplexPhr
Where exactly are you using these double quoted strings? QueryParser?
It would help if you showed a code snippet.
Assuming your real data is more complex and the strings you are
searching for aren't necessarily at the start of the text, you'll need
some mix of wildcard and proximity searching.