You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cescky <29...@qq.com> on 2011/04/02 22:09:43 UTC

About the lucene score

Hi,


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


Thanks