Class ValueSource.ValueSourceSortField

java.lang.Object
org.apache.lucene.search.SortField
org.apache.lucene.queries.function.ValueSource.ValueSourceSortField
Enclosing class:
ValueSource

class ValueSource.ValueSourceSortField extends SortField
  • Constructor Details

    • ValueSourceSortField

      public ValueSourceSortField(boolean reverse)
  • Method Details

    • rewrite

      public SortField rewrite(IndexSearcher searcher) throws 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:
      IOException - Can be thrown by the rewriting