Method Rewrite
Rewrite(IndexSearcher)
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 REWRITEABLE.
@lucene.experimental
Declaration
public virtual SortField Rewrite(IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | searcher | IndexSearcher to use during rewriting |
Returns
Type | Description |
---|---|
SortField | New rewritten SortField, or |