I have a requirement to sort the search results by relevance and another field.
I need to do something similar to this:
using Lucene.Net.Search; SortField[] fields = new[] { SortField.SCORE, new SortField("customField") }; Sort sort = new Sort(fields); IndexSearcher searcher = GetSearcher(); Hits = searcher.Search(query, sort);
Additionally, SortField.SCORE is an integer constant, not SortField .
Lucene.net version 2.3.1.3.
Has anyone come across this?
source share