I want to do ranking in Lucene search but I couldn't. I implemented Lucene in Java and the code indexing files and searching in indexed files. But I want to evaluate and make ranking function which returns double between 0 to 1. How can I implement this function. Thanks a lot!
Asked
Active
Viewed 139 times
0
-
And what's the source of that double? a field? a query part? – Martín Schonaker Jan 16 '14 at 00:47
1 Answers
0
Lucene uses TF-IDF similarity algorithm which you can override.
Alternatively, you can use boosting - either when indexing or querying. This is much simpler approach and requires less effort.

mindas
- 26,463
- 15
- 97
- 154