Re: Question about ordering rule of SpanNearQuery

2012-11-21 Thread Chris Hostetter
: I am confused with the ordering rule about SpanNearQuery. For example, I : indicate the slot in SpanNearQuery is 10. And the results are all the : qualified documents. Is it true that any document with shorter distance ... : it till uses tf-idf algorithm to rank the docs. Or there is

Re: Question about ordering rule of SpanNearQuery

2012-11-21 Thread Jack Krupansky
#explain(org.apache.lucene.search.Query, int) -- Jack Krupansky -Original Message- From: Jack Krupansky Sent: Wednesday, November 21, 2012 11:44 AM To: java-user@lucene.apache.org Subject: Re: Question about ordering rule of SpanNearQuery Add &debugQuery=true to your query and look at

Re: Question about ordering rule of SpanNearQuery

2012-11-21 Thread Jack Krupansky
-Original Message- From: 杨光 Sent: Wednesday, November 21, 2012 10:26 AM To: java-user@lucene.apache.org Subject: Question about ordering rule of SpanNearQuery Hi all, Recently, we are developing a platform with lucene. The ordering rule we specified is the document with the shortest di

Question about ordering rule of SpanNearQuery

2012-11-21 Thread 杨光
Hi all, Recently, we are developing a platform with lucene. The ordering rule we specified is the document with the shortest distance between query terms ranks the first. But there may be a little different with SpanNearQuery. It returns all the documents with qualified distance. So I am con

Re: Question about ordering rule of SpanNearQuery

2012-11-19 Thread Jack Krupansky
onday, November 19, 2012 5:02 AM To: java-user@lucene.apache.org Subject: Question about ordering rule of SpanNearQuery Hi all, Recently, we are developing a platform with lucene. The ordering rule we specified is the document with the shortest distance between query terms ranks the first. But

Question about ordering rule of SpanNearQuery

2012-11-19 Thread 杨光
Hi all, Recently, we are developing a platform with lucene. The ordering rule we specified is the document with the shortest distance between query terms ranks the first. But there may be a little different with SpanNearQuery. It returns all the documents with qualified distance. So I am con