Package | Description |
---|---|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.queries.function.valuesource |
A variety of functions to use with FunctionQuery.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
LatLonPointSortField
Sorts by distance from an origin location.
|
Modifier and Type | Method and Description |
---|---|
static SortField |
LatLonDocValuesField.newDistanceSort(java.lang.String field,
double latitude,
double longitude)
Creates a SortField for sorting by distance from a location.
|
Modifier and Type | Method and Description |
---|---|
private static MultiSorter.ComparableProvider[] |
MultiSorter.getComparableProviders(java.util.List<CodecReader> readers,
SortField sortField)
Returns
ComparableProvider s for the provided readers to represent the requested SortField sort order. |
(package private) Sorter.DocComparator |
SortedNumericDocValuesWriter.getDocComparator(int maxDoc,
SortField sortField) |
(package private) Sorter.DocComparator |
NumericDocValuesWriter.getDocComparator(int maxDoc,
SortField sortField) |
(package private) Sorter.DocComparator |
SortedDocValuesWriter.getDocComparator(int maxDoc,
SortField sortField) |
(package private) Sorter.DocComparator |
SortedSetDocValuesWriter.getDocComparator(int maxDoc,
SortField sortField) |
(package private) abstract Sorter.DocComparator |
DocValuesWriter.getDocComparator(int numDoc,
SortField sortField) |
(package private) Sorter.DocComparator |
BinaryDocValuesWriter.getDocComparator(int numDoc,
SortField sortField) |
(package private) static Sorter.DocComparator |
Sorter.getDocComparator(int maxDoc,
SortField sortField,
Sorter.SortedDocValuesSupplier sortedProvider,
Sorter.NumericDocValuesSupplier numericProvider)
We cannot use the
FieldComparator API because that API requires that you send it docIDs in order. |
(package private) static Sorter.DocComparator |
Sorter.getDocComparator(LeafReader reader,
SortField sortField) |
(package private) static NumericDocValues |
Sorter.getOrWrapNumeric(LeafReader reader,
SortField sortField)
Wraps a
SortedNumericDocValues as a single-valued view if the field is an instance of SortedNumericSortField ,
returns NumericDocValues for the field otherwise. |
(package private) static SortedDocValues |
Sorter.getOrWrapSorted(LeafReader reader,
SortField sortField)
Wraps a
SortedSetDocValues as a single-valued view if the field is an instance of SortedSetSortField ,
returns SortedDocValues for the field otherwise. |
(package private) static SortField.Type |
Sorter.getSortFieldType(SortField sortField)
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
ValueSource.ValueSourceSortField |
Modifier and Type | Method and Description |
---|---|
SortField |
ValueSource.getSortField(boolean reverse)
EXPERIMENTAL: This method is subject to change.
|
SortField |
ValueSource.ValueSourceSortField.rewrite(IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
SortField |
MultiValuedDoubleFieldSource.getSortField(boolean reverse) |
SortField |
SortedSetFieldSource.getSortField(boolean reverse) |
SortField |
FloatFieldSource.getSortField(boolean reverse) |
SortField |
IntFieldSource.getSortField(boolean reverse) |
SortField |
DoubleFieldSource.getSortField(boolean reverse) |
SortField |
MultiValuedFloatFieldSource.getSortField(boolean reverse) |
SortField |
MultiValuedIntFieldSource.getSortField(boolean reverse) |
SortField |
MultiValuedLongFieldSource.getSortField(boolean reverse) |
SortField |
LongFieldSource.getSortField(boolean reverse) |
Modifier and Type | Class and Description |
---|---|
private static class |
DoubleValuesSource.DoubleValuesSortField |
private static class |
LongValuesSource.LongValuesSortField |
class |
SortedNumericSortField
SortField for
SortedNumericDocValues . |
class |
SortedSetSortField
SortField for
SortedSetDocValues . |
Modifier and Type | Field and Description |
---|---|
static SortField |
SortField.FIELD_DOC
Represents sorting by document number (index order).
|
static SortField |
SortField.FIELD_SCORE
Represents sorting by document score (relevance).
|
SortField[] |
TopFieldDocs.fields
The fields which were used to sort results by.
|
protected SortField[] |
FieldValueHitQueue.fields
Stores the sort criteria being used.
|
(package private) SortField[] |
Sort.fields |
Modifier and Type | Method and Description |
---|---|
(package private) SortField[] |
FieldValueHitQueue.getFields()
Returns the SortFields being used by this hit queue.
|
SortField[] |
Sort.getSort()
Representation of the sort criteria.
|
SortField |
DoubleValuesSource.getSortField(boolean reverse)
Create a sort field based on the value of this producer
|
SortField |
LongValuesSource.getSortField(boolean reverse)
Create a sort field based on the value of this producer
|
SortField |
DoubleValuesSource.DoubleValuesSortField.rewrite(IndexSearcher searcher) |
SortField |
LongValuesSource.LongValuesSortField.rewrite(IndexSearcher searcher) |
SortField |
SortField.rewrite(IndexSearcher searcher)
Rewrites this SortField, returning a new SortField if a change is made.
|
Modifier and Type | Method and Description |
---|---|
static <T extends FieldValueHitQueue.Entry> |
FieldValueHitQueue.create(SortField[] fields,
int size)
Creates a hit queue sorted by the given list of fields.
|
void |
Sort.setSort(SortField... fields)
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.
|
void |
Sort.setSort(SortField field)
Sets the sort to the given criteria.
|
Constructor and Description |
---|
FieldValueHitQueue(SortField[] fields,
int size) |
MultiComparatorsFieldValueHitQueue(SortField[] fields,
int size) |
OneComparatorFieldValueHitQueue(SortField[] fields,
int size) |
Sort(SortField... fields)
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.
|
Sort(SortField field)
Sorts by the criteria in the given SortField.
|
TopFieldDocs(TotalHits totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields)
Creates one of these objects.
|
Modifier and Type | Field and Description |
---|---|
SortField[] |
TopGroups.groupSort
How groups are sorted against each other
|
SortField[] |
TopGroups.withinGroupSort
How docs are sorted within each group
|
Constructor and Description |
---|
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<T>[] groups,
float maxScore) |
TopGroups(SortField[] groupSort,
SortField[] withinGroupSort,
int totalHitCount,
int totalGroupedHitCount,
GroupDocs<T>[] groups,
float maxScore) |
Modifier and Type | Class and Description |
---|---|
class |
ToParentBlockJoinSortField
A special sort field that allows sorting parent docs based on nested / child level fields.
|