About the lucene score

2011-04-02 Thread Cescky
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

About the lucene score

2011-04-02 Thread Cescky
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

Re:RE: About the lucene sort

2011-04-02 Thread Cescky
um, the version of lucene that you are using and your search/sort code, you might get a better answer. Best of all would be a complete self-contained standalone program or test case that demonstrates the problem. -- Ian. On Fri, Apr 1, 2011 at 3:15 PM, Cescky wrote: > Hi, > > > I

About the lucene sort

2011-04-01 Thread Cescky
Hi, I know the default is sort by relevance. While, when i search the prefix (interface*), it does not work. It can only sort the document by the order of reading files. What is the problem??? Thx.