lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Subset match query?
Date Wed, 03 Oct 2007 20:57:04 GMT

A typical solution to problems in this "space" is to index marker terms to 
denote boundaries in the term sequence ... in combination with things 
like SpanNear and SpanNot, this can be used to make queries like "these 
5 words must be in the same sentence"

in your specific example however, where you want to match the entire 
sequence of terms for a doc in a specific field, i don't think you need 
any special indexing tricks ... you could probably just use a 
SpanFirst query containing a SpanNear query right? ... 
the key being that the end value of the SpanFirstQuery should be the same 
as the number of lcauses in the SpanNearQuery.



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message