lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: combine wildcard and phrase query
Date Sat, 08 Mar 2008 03:53:13 GMT

: No, as far as I know you can't combine wildcards in phrases. This would

The QueryParser doesn't support it, and there is no native query type 
for it, but if you are willing to do the query expansion yourself, you can 
build a MultiPhraseQuery (where you generate the terms using a 

alternately, you could use something like SpanRegexQuery in combination 
with a SpanNearQuery.

...lots of things are possible with Lucene Queries that just aren't 
possible with the QueryParser.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message