I want to sort individually by each keyword.

ex:)
There are Doc1,Doc2,Doc3.
It have three keywords - "A","B","C" in each.

[search result]
keyword "A" :
search result:Doc1,Doc2,Doc3

keyword "B" :
search result:Doc3,Doc2,Doc1

keyword "C" :
search result:Doc3,Doc1,Doc2


How do I implement the above?


Follow are my ideas.
But I want to know better ways strongly.

[A.]
Register more same keywords in proportion to the score.
  ex:) A,A,A,B,B,C

[B.]
By using own Similarity class, customizing score calculations.


Failed ideas.
--
Using "Field boost" and "Multi-value-field"

Reply via email to