Sort Lucene query by best match?

234 مرّة مشاهدة
التخطي إلى أول رسالة غير مقروءة

Jon Wynveen

غير مقروءة،
09‏/08‏/2012، 3:48:53 م9‏/8‏/2012
إلى rav...@googlegroups.com
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?

Itamar Syn-Hershko

غير مقروءة،
09‏/08‏/2012، 4:25:22 م9‏/8‏/2012
إلى rav...@googlegroups.com
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)

maxx

غير مقروءة،
15‏/10‏/2012، 2:58:38 م15‏/10‏/2012
إلى rav...@googlegroups.com،ita...@hibernatingrhinos.com
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?

Oren Eini (Ayende Rahien)

غير مقروءة،
15‏/10‏/2012، 8:09:09 م15‏/10‏/2012
إلى rav...@googlegroups.com،ita...@hibernatingrhinos.com
No, that would mean that you would find the best matches last.
الرد على الكل
رد على الكاتب
إعادة توجيه
0 رسالة جديدة