Hello,
I have started to work with Hibernate Search and there is functionality that I don't know how to implement it, I have checked on Internet and in Hibernate Search in Action.
I want to modify the scoring or relevance of the documents by the values of a 'numeric' field.
For example, Document -> field title | field value Document 1 -> 'the car of Peter' | '5' Document 2 -> 'the car of Peter' | '3' Document 3 -> 'the car of Peter' | '7'
In this case, I would like to receive the document in the order: Document 3, Document 1 and Document 2.
I don't want to sort by field value or by field title and field value. I want to modify the scoring returned by Lucene applying the field value. It's something similar to Google giving preference to the results more visited by the users.
Thanks in advance.
|