lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wiegand <michael.wieg...@lsv.uni-saarland.de>
Subject matching multi-word terms
Date Sat, 12 Mar 2011 10:13:24 GMT
Hi,

I would like to find documents matching multi-word terms, more 
specifically: my query is something like "B C" and I would like match 
contexts such as
"A B C D E"
but not
"B A C D E"
There seems to be some contradictory information on the web. Apparently, 
the statement
Term t = new Term("f", "A B")
would not do the job. If this is so, what is the common procedure for 
these type of terms? Some SpanQuery subclass?

Thank you in advance!

Best,
Michael


---------------------------------------------------------------------
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