FieldQueryParser always to use PrefixQuery
Hi
I wrote the following class:
public class AlwaysPrefixMultiFieldQP extends MultiFieldQueryParser {
public MyQP(String[] fields, Analyzer analyzer) {
super(fields, analyzer);
}
protected Query getFieldQuery(Stri
Hi
I wrote the following class:
public class AlwaysPrefixMultiFieldQP extends MultiFieldQueryParser {
public MyQP(String[] fields, Analyzer analyzer) {
super(fields, analyzer);
}
protected Query getFieldQuery(String field, String queryText) throws
ParseEx
The simplest way would be to pre-process the query. That
is, just split on words and add the '*' as appropriate.
Erick
On Nov 21, 2007 2:16 PM, Anders Lybecker <[EMAIL PROTECTED]> wrote:
> How do I force the MultiFieldQueryParser to interpret a string like
> "dock boat" as "dock* boat*" and ther