Class ValueSource.ValueSourceSortField

    • Constructor Detail

      • ValueSourceSortField

        public ValueSourceSortField​(boolean reverse)
    • Method Detail

      • rewrite

        public SortField rewrite​(IndexSearcher searcher)
                          throws java.io.IOException
        Description copied from class: 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 SortField.Type.REWRITEABLE
        Overrides:
        rewrite in class SortField
        Parameters:
        searcher - IndexSearcher to use during rewriting
        Returns:
        New rewritten SortField, or this if nothing has changed.
        Throws:
        java.io.IOException - Can be thrown by the rewriting