Class DoubleValuesSource.DoubleValuesSortField

    • Constructor Detail

      • DoubleValuesSortField

        DoubleValuesSortField​(DoubleValuesSource producer,
                              boolean reverse)
    • Method Detail

      • setMissingValue

        public void setMissingValue​(java.lang.Object missingValue)
        Description copied from class: SortField
        Set the value to use for documents that don't have a value.
        Overrides:
        setMissingValue in class SortField
      • needsScores

        public boolean needsScores()
        Description copied from class: SortField
        Whether the relevance score is needed to sort documents.
        Overrides:
        needsScores in class SortField
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class SortField
      • 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