lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cescky" <>
Subject About the lucene score
Date Sat, 02 Apr 2011 20:10:10 GMT

I search using the ComplexPhraseQueryParser (e.g. "great* sum*"), it becomes SpanNearQuery
so i cannot use multiTermQuery.setRewriteMethod(). Because prefix query is constant query,
it can only sort the document by the order of reading files.

Which method should I use to change it? And How to modify it to make it sort by relevance
not the constant score(reading file order)?

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message