rewrite

open fun rewrite(searcher: IndexSearcher): SortField

Rewrites this SortField, returning a new SortField if a change is made. Subclasses should override this define their rewriting behavior when this SortField is of type

Return

New rewritten SortField, or this if nothing has changed.

Parameters

searcher

IndexSearcher to use during rewriting

Throws

IOException

Can be thrown by the rewriting