Giving some guidance with Lucene APIs since the original question was about
Lucene: the APIs that you need to use are `IndexWriterConfig.setIndexSort`
to configure the index sort at index-time and then TopFieldCollector takes
a `boolean trackTotalHits` which you can set to `false` to tell Lucene to
7 March 2018, Apache Lucene⢠6.6.3 available
The Lucene PMC is pleased to announce the release of Apache Lucene 6.6.3.
Apache Lucene is a high-performance, full-featured text search engine
library written entirely in Java. It is a technology suitable for nearly
any application that requires f