Sort Lucene query by best match?

Showing 1-4 of 4 messages
Sort Lucene query by best match? Jon Wynveen 8/9/12 12:48 PM
When doing a Lucene query (session.Advanced.LuceneQuery<>()), is there a way to sort results by which is the best match? Is there even any way to determine which are better matches than others?
Re: [RavenDB] Sort Lucene query by best match? Itamar Syn-Hershko 8/9/12 1:25 PM
It is the default sort order, unless you set another, then this becomes the secondary sort order

There is a Temp-Index-Score metadata value sent for each result, this value tells you which result is "better" (higher the number, the higher the relevance is)


On Thu, Aug 9, 2012 at 10:48 PM, Jon Wynveen <jonwy...@gmail.com> wrote:
When doing a Lucene query (session.Advanced.LuceneQuery<>()), is there a way to sort results by which is the best match? Is there even any way to determine which are better matches than others?

Re: [RavenDB] Sort Lucene query by best match? maxx 10/15/12 11:58 AM
the default sort direction is descending (high to low) is it possible to sort "Temp-Index-Score" ascending (from low to high) through the HTTP-API?
Re: [RavenDB] Sort Lucene query by best match? Oren Eini 10/15/12 5:09 PM
No, that would mean that you would find the best matches last.