rewrite

fun rewrite(searcher: IndexSearcher?): Sort

Rewrites the SortFields in this Sort, returning a new Sort if any of the fields changes during their rewriting.

Return

this if the Sort/Fields have not changed, or a new Sort if there is a change

Parameters

searcher

IndexSearcher to use in the rewriting

Throws

IOException

Can be thrown by the rewriting