setLeafSorter
Set the comparator for sorting leaf readers. A DirectoryReader opened from a IndexWriter with this configuration will have its leaf readers sorted with the provided leaf sorter.
Return
IndexWriterConfig with leafSorter set.
Parameters
leafSorter
– a comparator for sorting leaf readers