Uses of Class
org.apache.lucene.search.SortField
Packages that use SortField
Package
Description
The logical representation of a
Document for indexing and
searching.Expressions.
Code to maintain and access indices.
Queries that compute score based upon a function.
A variety of functions to use with FunctionQuery.
Code to search indices.
Grouping.
Support for index-time and query-time joins.
Lucene field & query support for the spatial geometry implemented in
org.apache.lucene.spatial3d.geom.-
Uses of SortField in org.apache.lucene.document
Subclasses of SortField in org.apache.lucene.documentModifier and TypeClassDescription(package private) final classSorts using the value of a specified feature name from aFeatureField.(package private) final classSorts by distance from an origin location.(package private) final classSorts by distance from an origin location.Methods in org.apache.lucene.document that return SortFieldModifier and TypeMethodDescriptionstatic SortFieldLatLonDocValuesField.newDistanceSort(String field, double latitude, double longitude) Creates a SortField for sorting by distance from a location.static SortFieldXYDocValuesField.newDistanceSort(String field, float x, float y) Creates a SortField for sorting by distance from a location.static SortFieldFeatureField.newFeatureSort(String field, String featureName) Creates a SortField for sorting by the value of a feature.static SortFieldDoubleField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor double values.static SortFieldFloatField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor float values.static SortFieldIntField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor int values.static SortFieldKeywordField.newSortField(String field, boolean reverse, SortedSetSelector.Type selector) static SortFieldLongField.newSortField(String field, boolean reverse, SortedNumericSelector.Type selector) Create a newSortFieldfor long values. -
Uses of SortField in org.apache.lucene.expressions
Methods in org.apache.lucene.expressions that return SortFieldModifier and TypeMethodDescriptionExpression.getSortField(Bindings bindings, boolean reverse) Get a sort field which can be used to rank documents by this expression. -
Uses of SortField in org.apache.lucene.index
Methods in org.apache.lucene.index that return SortFieldModifier and TypeMethodDescriptionabstract SortFieldSortFieldProvider.readSortField(DataInput in) Reads a SortField from serialized bytesMethods in org.apache.lucene.index with parameters of type SortFieldModifier and TypeMethodDescriptionstatic voidSortFieldProvider.write(SortField sf, DataOutput output) Writes a SortField to a DataOutputabstract voidSortFieldProvider.writeSortField(SortField sf, DataOutput out) Writes a SortField to a DataOutput -
Uses of SortField in org.apache.lucene.queries.function
Subclasses of SortField in org.apache.lucene.queries.functionMethods in org.apache.lucene.queries.function that return SortFieldModifier and TypeMethodDescriptionValueSource.getSortField(boolean reverse) EXPERIMENTAL: This method is subject to change.ValueSource.ValueSourceSortField.rewrite(IndexSearcher searcher) -
Uses of SortField in org.apache.lucene.queries.function.valuesource
Methods in org.apache.lucene.queries.function.valuesource that return SortFieldModifier and TypeMethodDescriptionDoubleFieldSource.getSortField(boolean reverse) FloatFieldSource.getSortField(boolean reverse) IntFieldSource.getSortField(boolean reverse) LongFieldSource.getSortField(boolean reverse) MultiValuedDoubleFieldSource.getSortField(boolean reverse) MultiValuedFloatFieldSource.getSortField(boolean reverse) MultiValuedIntFieldSource.getSortField(boolean reverse) MultiValuedLongFieldSource.getSortField(boolean reverse) SortedSetFieldSource.getSortField(boolean reverse) -
Uses of SortField in org.apache.lucene.search
Subclasses of SortField in org.apache.lucene.searchModifier and TypeClassDescriptionprivate static classprivate static classclassSortField forSortedNumericDocValues.classSortField forSortedSetDocValues.Fields in org.apache.lucene.search declared as SortFieldModifier and TypeFieldDescriptionstatic final SortFieldSortField.FIELD_DOCRepresents sorting by document number (index order).static final SortFieldSortField.FIELD_SCORERepresents sorting by document score (relevance).protected final SortField[]FieldValueHitQueue.fieldsStores the sort criteria being used.private final SortField[]Sort.fieldsTopFieldDocs.fieldsThe fields which were used to sort results by.Methods in org.apache.lucene.search that return SortFieldModifier and TypeMethodDescription(package private) SortField[]FieldValueHitQueue.getFields()Returns the SortFields being used by this hit queue.Sort.getSort()Representation of the sort criteria.DoubleValuesSource.getSortField(boolean reverse) Create a sort field based on the value of this producerLongValuesSource.getSortField(boolean reverse) Create a sort field based on the value of this producerSortedNumericSortField.Provider.readSortField(DataInput in) SortedSetSortField.Provider.readSortField(DataInput in) SortField.Provider.readSortField(DataInput in) DoubleValuesSource.DoubleValuesSortField.rewrite(IndexSearcher searcher) LongValuesSource.LongValuesSortField.rewrite(IndexSearcher searcher) SortField.rewrite(IndexSearcher searcher) Rewrites this SortField, returning a new SortField if a change is made.Methods in org.apache.lucene.search with parameters of type SortFieldModifier and TypeMethodDescriptionstatic <T extends FieldValueHitQueue.Entry>
FieldValueHitQueue<T> Creates a hit queue sorted by the given list of fields.IndexSortSortedNumericDocValuesRangeQuery.getDocIdSetIterator(SortField sortField, SortField.Type sortFieldType, LeafReaderContext context, DocIdSetIterator delegate) Computes the document IDs that lie within the range [lowerValue, upperValue] by performing binary search on the field's doc values.private static SortField.TypeIndexSortSortedNumericDocValuesRangeQuery.getSortFieldType(SortField sortField) private static IndexSortSortedNumericDocValuesRangeQuery.ValueComparatorIndexSortSortedNumericDocValuesRangeQuery.loadComparator(SortField sortField, SortField.Type type, long topValue, LeafReaderContext context) voidSortedNumericSortField.Provider.writeSortField(SortField sf, DataOutput out) voidSortedSetSortField.Provider.writeSortField(SortField sf, DataOutput out) voidSortField.Provider.writeSortField(SortField sf, DataOutput out) Constructors in org.apache.lucene.search with parameters of type SortFieldModifierConstructorDescriptionprivateFieldValueHitQueue(SortField[] fields, int size) MultiComparatorsFieldValueHitQueue(SortField[] fields, int size) OneComparatorFieldValueHitQueue(SortField[] fields, int size) Sets the sort to the given criteria in succession: the first SortField is checked first, but if it produces a tie, then the second SortField is used to break the tie, etc.TopFieldDocs(TotalHits totalHits, ScoreDoc[] scoreDocs, SortField[] fields) Creates one of these objects. -
Uses of SortField in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as SortFieldModifier and TypeFieldDescriptionfinal SortField[]TopGroups.groupSortHow groups are sorted against each otherfinal SortField[]TopGroups.withinGroupSortHow docs are sorted within each groupConstructors in org.apache.lucene.search.grouping with parameters of type SortField -
Uses of SortField in org.apache.lucene.search.join
Subclasses of SortField in org.apache.lucene.search.joinModifier and TypeClassDescriptionclassA special sort field that allows sorting parent docs based on nested / child level fields. -
Uses of SortField in org.apache.lucene.spatial3d
Subclasses of SortField in org.apache.lucene.spatial3dModifier and TypeClassDescription(package private) final classSorts by outside distance from an origin location.(package private) final classSorts by distance from an origin location.Methods in org.apache.lucene.spatial3d that return SortFieldModifier and TypeMethodDescriptionstatic SortFieldGeo3DDocValuesField.newDistanceSort(String field, double latitude, double longitude, double maxRadiusMeters, PlanetModel planetModel) Creates a SortField for sorting by distance within a circle.static SortFieldGeo3DDocValuesField.newOutsideBoxSort(String field, double minLatitude, double maxLatitude, double minLongitude, double maxLongitude, PlanetModel planetModel) Creates a SortField for sorting by outside distance from a box.static SortFieldGeo3DDocValuesField.newOutsideDistanceSort(String field, double latitude, double longitude, double maxRadiusMeters, PlanetModel planetModel) Creates a SortField for sorting by outside distance from a circle.static SortFieldGeo3DDocValuesField.newOutsideLargePolygonSort(String field, PlanetModel planetModel, Polygon... polygons) Creates a SortField for sorting by outside distance from a large polygon.static SortFieldGeo3DDocValuesField.newOutsidePathSort(String field, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters, PlanetModel planetModel) Creates a SortField for sorting by outside distance from a path.static SortFieldGeo3DDocValuesField.newOutsidePolygonSort(String field, PlanetModel planetModel, Polygon... polygons) Creates a SortField for sorting by outside distance from a polygon.static SortFieldGeo3DDocValuesField.newPathSort(String field, double[] pathLatitudes, double[] pathLongitudes, double pathWidthMeters, PlanetModel planetModel) Creates a SortField for sorting by distance along a path.