Sorting based on Relevancy Lucene Search
Hi all,
We have implemented Lucene full text search by implementing a query. Now we have this requirement to sort the results based on textual relevancy.
We would like to perform this sorting with highest being the maximum number of occurrences of the search keyword in the results obtained on fulltext search.
We tried doing this through standard java string operations, but it takes a lot of time as the results are more.
Is there a possibility to do this using any available predicates in the query itself? Or is there any other way of doing this?
Thanks!
