Hi, I have a requirement to have a custom comparator that keep the top N documents (chosen by some criteria) but only if their score is more then e.g. 1% of the maxScore.
Looking at SolrIndexSearcher.java, I was hoping to have a custom TopFieldCollector.java to return these via TopFieldCollector..topDocs, but I can't see how to override that class to provide my own, I think I need to do this here (TopFieldCollector..topDocs) as I won't know what the maxScore is until all the docs have been collected and compared? Does anyone have any suggestions? I'd like to avoid having to do two searches. Many Thanks, Dan