Re: Query to always prefer adjacent terms.

2011-09-13 Thread Joel Halbert
SpanNearQuery makes sense, thanks for the link. On Tue, 2011-09-13 at 14:40 +0100, Ian Lea wrote: > Use a query with multiple clauses including a boosted PhraseQuery, or > SpanNearQuery. I think the latter is the most flexible - see > http://www.lucidimagination.com/blog/2009/07/18/the-spanquery/

Re: Query to always prefer adjacent terms.

2011-09-13 Thread Ian Lea
Use a query with multiple clauses including a boosted PhraseQuery, or SpanNearQuery. I think the latter is the most flexible - see http://www.lucidimagination.com/blog/2009/07/18/the-spanquery/ for good info. http://lucene.apache.org/java/3_3_0/queryparsersyntax.html tells you how to use boosting