lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: Force MultiFieldQueryParser always to use PrefixQuery
Date Thu, 22 Nov 2007 13:35:57 GMT
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 <aly@miracleas.dk> wrote:

> How do I force the MultiFieldQueryParser to interpret a string like
> "dock boat" as "dock* boat*" and therefore use PrefixQuery instead of
> TemQuery?
>
> The customer wants always to search with <word>* as default when entering
> <word>
>
> :-)
> Anders Lybecker
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message