Package | Description |
---|---|
org.apache.lucene.expressions |
Expressions.
|
org.apache.lucene.facet.range |
Provides range faceting capabilities.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.spatial |
Lucene spatial search
|
org.apache.lucene.spatial.bbox |
Bounding Box Spatial Strategy
|
org.apache.lucene.spatial.composite |
Composite strategies.
|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy.
|
org.apache.lucene.spatial.serialized |
Strategies that serialize the shape (non-indexed).
|
org.apache.lucene.spatial.util |
Various spatial utilities.
|
org.apache.lucene.spatial.vector |
Spatial strategy that uses two fields.
|
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
Expression.getDoubleValuesSource(Bindings bindings)
Get a DoubleValuesSource which can compute the value of this expression in the context of the given bindings.
|
DoubleValuesSource |
SimpleBindings.getDoubleValuesSource(java.lang.String name) |
abstract DoubleValuesSource |
Bindings.getDoubleValuesSource(java.lang.String name)
Returns a DoubleValuesSource bound to the variable name
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleBindings.add(java.lang.String name,
DoubleValuesSource source)
Bind a
DoubleValuesSource directly to the given name. |
Modifier and Type | Method and Description |
---|---|
Query |
DoubleRange.getQuery(Query fastMatchQuery,
DoubleValuesSource 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 |
---|
DoubleRangeFacetCounts(java.lang.String field,
DoubleValuesSource valueSource,
FacetsCollector hits,
DoubleRange... ranges)
Create
RangeFacetCounts using the provided DoubleValuesSource |
DoubleRangeFacetCounts(java.lang.String field,
DoubleValuesSource valueSource,
FacetsCollector hits,
Query fastMatchQuery,
DoubleRange... ranges)
Create
RangeFacetCounts , using the provided
DoubleValuesSource , and using the provided Query as
a fastmatch: only documents matching the query are
checked for the matching ranges. |
Constructor and Description |
---|
TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader,
TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc,
DoubleValuesSource vs)
Aggreggates float facet values from the provided
DoubleValuesSource , and pulls ordinals from the
provided OrdinalsReader . |
TaxonomyFacetSumValueSource(TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc,
DoubleValuesSource valueSource)
Aggreggates double facet values from the provided
DoubleValuesSource , pulling ordinals using DocValuesOrdinalsReader against the default indexed
facet field FacetsConfig.DEFAULT_INDEX_FIELD_NAME . |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
ValueSource.asDoubleValuesSource()
Expose this ValueSource as a DoubleValuesSource
|
static DoubleValuesSource |
IndexReaderFunctions.docCount(java.lang.String field)
Creates a constant value source returning the docCount for a given field
|
static DoubleValuesSource |
IndexReaderFunctions.docFreq(Term term)
Creates a constant value source returning the docFreq of a given term
|
static DoubleValuesSource |
IndexReaderFunctions.maxDoc()
Creates a constant value source returning the index's maxDoc
|
static DoubleValuesSource |
IndexReaderFunctions.numDeletedDocs()
Creates a constant value source returning the number of deleted docs in the index
|
static DoubleValuesSource |
IndexReaderFunctions.numDocs()
Creates a constant value source returning the index's numDocs
|
static DoubleValuesSource |
IndexReaderFunctions.sumDocFreq(java.lang.String field)
Creates a constant value source returning the sumDocFreq for a given field
|
static DoubleValuesSource |
IndexReaderFunctions.termFreq(Term term)
Creates a value source that returns the term freq of a given term for each document
|
static DoubleValuesSource |
IndexReaderFunctions.totalTermFreq(Term term)
Creates a constant value source returning the totalTermFreq for a given term
|
Modifier and Type | Method and Description |
---|---|
static FunctionScoreQuery |
FunctionScoreQuery.boostByValue(Query in,
DoubleValuesSource boost)
Returns a FunctionScoreQuery where the scores of a wrapped query are multiplied by
the value of a DoubleValuesSource.
|
static ValueSource |
ValueSource.fromDoubleValuesSource(DoubleValuesSource in) |
Constructor and Description |
---|
FunctionMatchQuery(DoubleValuesSource source,
java.util.function.DoublePredicate filter)
Create a FunctionMatchQuery
|
FunctionScoreQuery(Query in,
DoubleValuesSource source)
Create a new FunctionScoreQuery
|
Modifier and Type | Field and Description |
---|---|
static DoubleValuesSource |
DoubleValuesSource.SCORES
A DoubleValuesSource that exposes a document's score
If this source is used as part of a values calculation, then callers must not
pass
null as the DoubleValues parameter on getValues(LeafReaderContext, DoubleValues) |
Modifier and Type | Method and Description |
---|---|
static DoubleValuesSource |
DoubleValuesSource.constant(double value)
Creates a DoubleValuesSource that always returns a constant value
|
static DoubleValuesSource |
DoubleValuesSource.fromDoubleField(java.lang.String field)
Creates a DoubleValuesSource that wraps a double-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromField(java.lang.String field,
java.util.function.LongToDoubleFunction decoder)
Creates a DoubleValuesSource that wraps a generic NumericDocValues field
|
static DoubleValuesSource |
DoubleValuesSource.fromFloatField(java.lang.String field)
Creates a DoubleValuesSource that wraps a float-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromIntField(java.lang.String field)
Creates a DoubleValuesSource that wraps an int-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromLongField(java.lang.String field)
Creates a DoubleValuesSource that wraps a long-valued field
|
static DoubleValuesSource |
DoubleValuesSource.fromQuery(Query query)
Create a DoubleValuesSource that returns the score of a particular query
|
abstract DoubleValuesSource |
DoubleValuesSource.rewrite(IndexSearcher reader)
Return a DoubleValuesSource specialised for the given IndexSearcher
Implementations should assume that this will only be called once.
|
DoubleValuesSource |
LongValuesSource.toDoubleValuesSource()
Convert to a DoubleValuesSource by casting long values to doubles
|
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
SpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint)
See
SpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point, double) called with
a multiplier of 1.0 (i.e. |
abstract DoubleValuesSource |
SpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier)
Make a ValueSource returning the distance between the center of the
indexed shape and
queryPoint . |
DoubleValuesSource |
SpatialStrategy.makeRecipDistanceValueSource(org.locationtech.spatial4j.shape.Shape queryShape)
Returns a ValueSource with values ranging from 1 to 0, depending inversely
on the distance from
SpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point,double) . |
Modifier and Type | Class and Description |
---|---|
class |
BBoxOverlapRatioValueSource
The algorithm is implemented as envelope on envelope (rect on rect) overlays rather than
complex polygon on complex polygon overlays.
|
class |
BBoxSimilarityValueSource
A base class for calculating a spatial relevance rank per document from a provided
ShapeValuesSource returning a Rectangle per-document. |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
BBoxStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier) |
DoubleValuesSource |
BBoxStrategy.makeOverlapRatioValueSource(org.locationtech.spatial4j.shape.Rectangle queryBox,
double queryTargetProportion)
Returns a similarity based on
BBoxOverlapRatioValueSource . |
DoubleValuesSource |
BBoxSimilarityValueSource.rewrite(IndexSearcher searcher) |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
CompositeSpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier) |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
PrefixTreeStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier) |
DoubleValuesSource |
NumberRangePrefixTreeStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier)
Unsupported.
|
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
SerializedDVStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier) |
Modifier and Type | Class and Description |
---|---|
class |
CachingDoubleValueSource
Caches the doubleVal of another value source in a HashMap
so that it is computed only once.
|
class |
DistanceToShapeValueSource
The distance from a provided Point to a Point retrieved from an ShapeValuesSource.
|
class |
ReciprocalDoubleValuesSource
Transforms a DoubleValuesSource using the formula v = k / (v + k)
|
class |
ShapeAreaValueSource
The area of a Shape retrieved from an ShapeValuesSource
|
class |
ShapeFieldCacheDistanceValueSource
A DoubleValuesSource that returns the spatial distance
between an input point and a document's points in
ShapeFieldCacheProvider . |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
ShapeAreaValueSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
ReciprocalDoubleValuesSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
DistanceToShapeValueSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
CachingDoubleValueSource.rewrite(IndexSearcher searcher) |
DoubleValuesSource |
ShapeFieldCacheDistanceValueSource.rewrite(IndexSearcher searcher) |
Constructor and Description |
---|
CachingDoubleValueSource(DoubleValuesSource source) |
ReciprocalDoubleValuesSource(double distToEdge,
DoubleValuesSource input)
Creates a ReciprocalDoubleValuesSource
|
Modifier and Type | Class and Description |
---|---|
class |
DistanceValueSource
A DoubleValuesSource that returns the distance for a
PointVectorStrategy . |
Modifier and Type | Method and Description |
---|---|
DoubleValuesSource |
PointVectorStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point queryPoint,
double multiplier) |
DoubleValuesSource |
DistanceValueSource.rewrite(IndexSearcher searcher) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.