Module org.apache.lucene.queries
Class ValueSource.ValueSourceSortField
java.lang.Object
org.apache.lucene.search.SortField
org.apache.lucene.queries.function.ValueSource.ValueSourceSortField
- Enclosing class:
- ValueSource
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.search.SortField
SortField.Provider, SortField.Type
-
Field Summary
Fields inherited from class org.apache.lucene.search.SortField
FIELD_DOC, FIELD_SCORE, missingValue, STRING_FIRST, STRING_LAST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrewrite
(IndexSearcher searcher) Rewrites this SortField, returning a new SortField if a change is made.Methods inherited from class org.apache.lucene.search.SortField
equals, getBytesComparator, getComparator, getComparatorSource, getField, getIndexSorter, getMissingValue, getOptimizeSortWithIndexedData, getOptimizeSortWithPoints, getReverse, getType, hashCode, needsScores, readType, setBytesComparator, setMissingValue, setOptimizeSortWithIndexedData, setOptimizeSortWithPoints, toString
-
Constructor Details
-
ValueSourceSortField
public ValueSourceSortField(boolean reverse)
-
-
Method Details
-
rewrite
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 typeSortField.Type.REWRITEABLE
- Overrides:
rewrite
in classSortField
- 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
-