getLeafComparator

Get a per-segment LeafFieldComparator to collect the given [ ]. All docIDs supplied to this [ ] are relative to the current reader (you must add docBase if you need to map it to a top-level docID).

Return

the comparator to use for this segment

Parameters

context

current reader context

Throws

IOException

if there is a low-level IO error