Package | Description |
---|---|
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.facet.range |
Provides range faceting capabilities.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
Constructor and Description |
---|
LongValueFacetCounts(java.lang.String field,
LongValuesSource valueSource,
FacetsCollector hits)
Create
LongValueFacetCounts , using the provided
LongValuesSource . |
LongValueFacetCounts(java.lang.String field,
LongValuesSource valueSource,
FacetsCollector hits,
boolean multiValued)
Create
LongValueFacetCounts , using the provided
LongValuesSource . |
LongValueFacetCounts(java.lang.String field,
LongValuesSource valueSource,
IndexReader reader)
Counts all facet values for the provided
LongValuesSource . |
Modifier and Type | Method and Description |
---|---|
Query |
LongRange.getQuery(Query fastMatchQuery,
LongValuesSource valueSource)
Create a Query that matches documents in this range
The query will check all documents that match the provided match query,
or every document in the index if the match query is null.
|
Constructor and Description |
---|
LongRangeFacetCounts(java.lang.String field,
LongValuesSource valueSource,
FacetsCollector hits,
LongRange... ranges)
Create
LongRangeFacetCounts , using the provided
LongValuesSource . |
LongRangeFacetCounts(java.lang.String field,
LongValuesSource valueSource,
FacetsCollector hits,
Query fastMatchQuery,
LongRange... ranges)
Create
LongRangeFacetCounts , using the provided
LongValuesSource , and using the provided Filter as
a fastmatch: only documents passing the filter are
checked for the matching ranges, which is helpful when
the provided LongValuesSource is costly per-document,
such as a geo distance. |
Modifier and Type | Method and Description |
---|---|
LongValuesSource |
ValueSource.asLongValuesSource()
Expose this ValueSource as a LongValuesSource
|
static LongValuesSource |
IndexReaderFunctions.sumTotalTermFreq(java.lang.String field)
Creates a constant value source returning the sumTotalTermFreq for a field
|
Modifier and Type | Method and Description |
---|---|
static LongValuesSource |
LongValuesSource.constant(long value)
Creates a LongValuesSource that always returns a constant value
|
static LongValuesSource |
LongValuesSource.fromIntField(java.lang.String field)
Creates a LongValuesSource that wraps an int-valued field
|
static LongValuesSource |
LongValuesSource.fromLongField(java.lang.String field)
Creates a LongValuesSource that wraps a long-valued field
|
abstract LongValuesSource |
LongValuesSource.rewrite(IndexSearcher searcher)
Return a LongValuesSource specialised for the given IndexSearcher
Implementations should assume that this will only be called once.
|
LongValuesSource |
DoubleValuesSource.toLongValuesSource()
Convert to a LongValuesSource by casting the double values to longs
|
Constructor and Description |
---|
CoveringQuery(java.util.Collection<Query> queries,
LongValuesSource minimumNumberMatch)
Sole constructor.
|
Constructor and Description |
---|
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource)
Creates a new dictionary with the contents of the fields named
field
for the terms and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload)
Creates a new dictionary with the contents of the fields named
field
for the terms, payloadField for the corresponding payloads
and uses the weightsValueSource supplied to determine the
score. |
DocumentValueSourceDictionary(IndexReader reader,
java.lang.String field,
LongValuesSource weightsValueSource,
java.lang.String payload,
java.lang.String contexts)
Creates a new dictionary with the contents of the fields named
field
for the terms, payload for the corresponding payloads, contexts
for the associated contexts and uses the weightsValueSource supplied
to determine the score. |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.