Modifier and Type | Method and Description |
---|---|
protected ValueSource |
Bindings.getScoreValueSource()
Returns a
ValueSource over relevance scores |
ValueSource |
Expression.getValueSource(Bindings bindings)
Get a value source which can compute the value of this expression in the context of the given bindings.
|
abstract ValueSource |
Bindings.getValueSource(String name)
Returns a ValueSource bound to the variable name.
|
ValueSource |
SimpleBindings.getValueSource(String name) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleBindings.add(String name,
ValueSource source)
Bind a
ValueSource directly to the given name. |
Modifier and Type | Method and Description |
---|---|
Query |
DoubleRange.getQuery(Query fastMatchQuery,
ValueSource valueSource) |
abstract Query |
Range.getQuery(Query fastMatchQuery,
ValueSource valueSource)
Returns a new
Query accepting only documents
in this range. |
Query |
LongRange.getQuery(Query fastMatchQuery,
ValueSource valueSource) |
Query |
Range.getQuery(ValueSource valueSource)
Returns a new
Query accepting only documents
in this range. |
Constructor and Description |
---|
DoubleRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
DoubleRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource . |
DoubleRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
Query fastMatchQuery,
DoubleRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource , and using the provided Query as
a fastmatch: only documents passing the filter are
checked for the matching ranges. |
LongRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
LongRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource . |
LongRangeFacetCounts(String field,
ValueSource valueSource,
FacetsCollector hits,
Query fastMatchQuery,
LongRange... ranges)
Create
RangeFacetCounts , using the provided
ValueSource , and using the provided Filter as
a fastmatch: only documents passing the filter are
checked for the matching ranges. |
Modifier and Type | Class and Description |
---|---|
static class |
TaxonomyFacetSumValueSource.ScoreValueSource
ValueSource that returns the score for each
hit; use this to aggregate the sum of all hit scores
for each facet label. |
Constructor and Description |
---|
TaxonomyFacetSumValueSource(OrdinalsReader ordinalsReader,
TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc,
ValueSource valueSource)
Aggreggates float facet values from the provided
ValueSource , and pulls ordinals from the
provided OrdinalsReader . |
TaxonomyFacetSumValueSource(TaxonomyReader taxoReader,
FacetsConfig config,
FacetsCollector fc,
ValueSource valueSource)
Aggreggates float facet values from the provided
ValueSource , pulling ordinals using DocValuesOrdinalsReader against the default indexed
facet field FacetsConfig.DEFAULT_INDEX_FIELD_NAME . |
Modifier and Type | Method and Description |
---|---|
ValueSource |
FunctionQuery.getValueSource() |
ValueSource |
BoostedQuery.getValueSource() |
Constructor and Description |
---|
BoostedQuery(Query subQuery,
ValueSource boostVal) |
FunctionQuery(ValueSource func) |
Modifier and Type | Field and Description |
---|---|
protected ValueSource |
DoubleDocValues.vs |
protected ValueSource |
FloatDocValues.vs |
protected ValueSource |
DocTermsIndexDocValues.vs |
protected ValueSource |
BoolDocValues.vs |
protected ValueSource |
StrDocValues.vs |
protected ValueSource |
LongDocValues.vs |
protected ValueSource |
IntDocValues.vs |
Constructor and Description |
---|
BoolDocValues(ValueSource vs) |
DocTermsIndexDocValues(ValueSource vs,
LeafReaderContext context,
String field) |
DocTermsIndexDocValues(ValueSource vs,
SortedDocValues termsIndex) |
DoubleDocValues(ValueSource vs) |
FloatDocValues(ValueSource vs) |
IntDocValues(ValueSource vs) |
LongDocValues(ValueSource vs) |
StrDocValues(ValueSource vs) |
Modifier and Type | Class and Description |
---|---|
class |
BoolFunction
Abstract parent class for those
ValueSource implementations which
apply boolean logic to their values |
class |
BytesRefFieldSource
An implementation for retrieving
FunctionValues instances for string based fields. |
class |
ConstNumberSource
ConstNumberSource is the base class for all constant numbers |
class |
ConstValueSource
ConstValueSource returns a constant for all documents |
class |
DefFunction
ValueSource implementation which only returns the values from the provided
ValueSources which are available for a particular docId. |
class |
DivFloatFunction
Function to divide "a" by "b"
|
class |
DocFreqValueSource
DocFreqValueSource returns the number of documents containing the term. |
class |
DoubleConstValueSource
Function that returns a constant double value for every document.
|
class |
DoubleFieldSource
Obtains double field values from
LeafReader.getNumericDocValues(java.lang.String) and makes
those values available as other numeric types, casting as needed. |
class |
DualFloatFunction
Abstract
ValueSource implementation which wraps two ValueSources
and applies an extendible float function to their values. |
class |
EnumFieldSource
Obtains int field values from
LeafReader.getNumericDocValues(java.lang.String) and makes
those values available as other numeric types, casting as needed. |
class |
FieldCacheSource
A base class for ValueSource implementations that retrieve values for
a single field from DocValues.
|
class |
FloatFieldSource
Obtains float field values from
LeafReader.getNumericDocValues(java.lang.String) and makes those
values available as other numeric types, casting as needed. |
class |
IDFValueSource
Function that returns
#idf(long, long)
for every document. |
class |
IfFunction
Depending on the boolean value of the
ifSource function,
returns the value of the trueSource or falseSource function. |
class |
IntFieldSource
Obtains int field values from
LeafReader.getNumericDocValues(java.lang.String) and makes those
values available as other numeric types, casting as needed. |
class |
JoinDocFreqValueSource
Use a field value and find the Document Frequency within another field.
|
class |
LinearFloatFunction
LinearFloatFunction implements a linear function over
another ValueSource . |
class |
LiteralValueSource
Pass a the field value through as a String, no matter the type // Q: doesn't this mean it's a "string"?
|
class |
LongFieldSource
Obtains long field values from
LeafReader.getNumericDocValues(java.lang.String) and makes those
values available as other numeric types, casting as needed. |
class |
MaxDocValueSource
Returns the value of
IndexReader.maxDoc()
for every document. |
class |
MaxFloatFunction
MaxFloatFunction returns the max of its components. |
class |
MinFloatFunction
MinFloatFunction returns the min of its components. |
class |
MultiBoolFunction
Abstract
ValueSource implementation which wraps multiple ValueSources
and applies an extendible boolean function to their values. |
class |
MultiFloatFunction
Abstract
ValueSource implementation which wraps multiple ValueSources
and applies an extendible float function to their values. |
class |
MultiFunction
Abstract parent class for
ValueSource implementations that wrap multiple
ValueSources and apply their own logic. |
class |
MultiValueSource
A
ValueSource that abstractly represents ValueSource s for
poly fields, and other things. |
class |
NormValueSource
Function that returns
TFIDFSimilarity.decodeNormValue(long)
for every document. |
class |
NumDocsValueSource
Returns the value of
IndexReader.numDocs()
for every document. |
class |
PowFloatFunction
Function to raise the base "a" to the power "b"
|
class |
ProductFloatFunction
ProductFloatFunction returns the product of its components. |
class |
QueryValueSource
QueryValueSource returns the relevance score of the query |
class |
RangeMapFloatFunction
RangeMapFloatFunction implements a map function over
another ValueSource whose values fall within min and max inclusive to target. |
class |
ReciprocalFloatFunction
ReciprocalFloatFunction implements a reciprocal function f(x) = a/(mx+b), based on
the float value of a field or function as exported by ValueSource . |
class |
ScaleFloatFunction
Scales values to be between min and max.
|
class |
SimpleBoolFunction
BoolFunction implementation which applies an extendible boolean
function to the values of a single wrapped ValueSource . |
class |
SimpleFloatFunction
A simple float function with a single argument
|
class |
SingleFunction
A function with a single argument
|
class |
SortedSetFieldSource
Retrieves
FunctionValues instances for multi-valued string based fields. |
class |
SumFloatFunction
SumFloatFunction returns the sum of its components. |
class |
SumTotalTermFreqValueSource
SumTotalTermFreqValueSource returns the number of tokens. |
class |
TermFreqValueSource
Function that returns
PostingsEnum.freq() for the
supplied term in every document. |
class |
TFValueSource
Function that returns
TFIDFSimilarity.tf(float)
for every document. |
class |
TotalTermFreqValueSource
TotalTermFreqValueSource returns the total term freq
(sum of term freqs across all documents). |
class |
VectorValueSource
Converts individual ValueSource instances to leverage the FunctionValues *Val functions that work with multiple values,
i.e.
|
Modifier and Type | Field and Description |
---|---|
protected ValueSource |
DualFloatFunction.a |
protected ValueSource |
DualFloatFunction.b |
protected ValueSource |
RangeMapFloatFunction.defaultVal |
protected ValueSource |
RangeMapFloatFunction.source |
protected ValueSource |
LinearFloatFunction.source |
protected ValueSource |
ReciprocalFloatFunction.source |
protected ValueSource |
ScaleFloatFunction.source |
protected ValueSource |
SingleFunction.source |
protected ValueSource |
SimpleBoolFunction.source |
protected ValueSource[] |
MultiFloatFunction.sources |
protected ValueSource |
RangeMapFloatFunction.target |
Modifier and Type | Field and Description |
---|---|
protected List<ValueSource> |
VectorValueSource.sources |
protected List<ValueSource> |
MultiFunction.sources |
protected List<ValueSource> |
MultiBoolFunction.sources |
Modifier and Type | Method and Description |
---|---|
List<ValueSource> |
VectorValueSource.getSources() |
Modifier and Type | Method and Description |
---|---|
static String |
MultiFunction.description(String name,
List<ValueSource> sources) |
static FunctionValues[] |
MultiFunction.valsArr(List<ValueSource> sources,
Map fcontext,
LeafReaderContext readerContext) |
Constructor and Description |
---|
DefFunction(List<ValueSource> sources) |
MultiBoolFunction(List<ValueSource> sources) |
MultiFunction(List<ValueSource> sources) |
VectorValueSource(List<ValueSource> sources) |
Constructor and Description |
---|
GroupingSearch(ValueSource groupFunction,
Map<?,?> valueSourceContext)
Constructs a
GroupingSearch instance that groups documents by function using a ValueSource
instance. |
Constructor and Description |
---|
FunctionAllGroupHeadsCollector(ValueSource groupBy,
Map<?,?> vsContext,
Sort sortWithinGroup)
Constructs a
FunctionAllGroupHeadsCollector instance. |
FunctionAllGroupsCollector(ValueSource groupBy,
Map<?,?> vsContext)
Constructs a
FunctionAllGroupsCollector instance. |
FunctionDistinctValuesCollector(Map<?,?> vsContext,
ValueSource groupSource,
ValueSource countSource,
Collection<SearchGroup<MutableValue>> groups) |
FunctionFirstPassGroupingCollector(ValueSource groupByVS,
Map<?,?> vsContext,
Sort groupSort,
int topNGroups)
Creates a first pass collector.
|
FunctionSecondPassGroupingCollector(Collection<SearchGroup<MutableValue>> searchGroups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields,
ValueSource groupByVS,
Map<?,?> vsContext)
Constructs a
FunctionSecondPassGroupingCollector instance. |
Constructor and Description |
---|
DocumentValueSourceDictionary(IndexReader reader,
String field,
ValueSource 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,
String field,
ValueSource weightsValueSource,
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,
String field,
ValueSource weightsValueSource,
String payload,
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. |
Modifier and Type | Method and Description |
---|---|
ValueSource |
SpatialStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint)
See
SpatialStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point, double) called with
a multiplier of 1.0 (i.e. |
abstract ValueSource |
SpatialStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier)
Make a ValueSource returning the distance between the center of the
indexed shape and
queryPoint . |
ValueSource |
SpatialStrategy.makeRecipDistanceValueSource(com.spatial4j.core.shape.Shape queryShape)
Returns a ValueSource with values ranging from 1 to 0, depending inversely
on the distance from
SpatialStrategy.makeDistanceValueSource(com.spatial4j.core.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
ValueSource in which FunctionValues.objectVal(int) returns a Rectangle . |
Modifier and Type | Method and Description |
---|---|
ValueSource |
BBoxStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier) |
ValueSource |
BBoxStrategy.makeOverlapRatioValueSource(com.spatial4j.core.shape.Rectangle queryBox,
double queryTargetProportion)
Returns a similarity based on
BBoxOverlapRatioValueSource . |
ValueSource |
BBoxStrategy.makeShapeValueSource()
Provides access to each rectangle per document as a ValueSource in which
FunctionValues.objectVal(int) returns a Shape . |
Constructor and Description |
---|
BBoxOverlapRatioValueSource(ValueSource rectValueSource,
boolean isGeo,
com.spatial4j.core.shape.Rectangle queryExtent,
double queryTargetProportion,
double minSideLength) |
BBoxOverlapRatioValueSource(ValueSource rectValueSource,
com.spatial4j.core.shape.Rectangle queryExtent)
Construct with 75% weighting towards target (roughly GeoPortal's default), geo degrees assumed, no
minimum side length.
|
BBoxSimilarityValueSource(ValueSource bboxValueSource) |
Modifier and Type | Method and Description |
---|---|
ValueSource |
CompositeSpatialStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier) |
Constructor and Description |
---|
CompositeVerifyQuery(Query indexQuery,
ValueSource predicateValueSource) |
IntersectsRPTVerifyQuery(com.spatial4j.core.shape.Shape queryShape,
String fieldName,
SpatialPrefixTree grid,
int detailLevel,
int prefixGridScanLevel,
ValueSource predicateValueSource) |
Modifier and Type | Method and Description |
---|---|
ValueSource |
NumberRangePrefixTreeStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier)
Unsupported.
|
ValueSource |
PrefixTreeStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier) |
Modifier and Type | Method and Description |
---|---|
ValueSource |
SerializedDVStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier) |
ValueSource |
SerializedDVStrategy.makeShapeValueSource()
Provides access to each shape per document as a ValueSource in which
FunctionValues.objectVal(int) returns a Shape . |
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 a ValueSource via
FunctionValues.objectVal(int) . |
class |
ShapeAreaValueSource
The area of a Shape retrieved from a ValueSource via
FunctionValues.objectVal(int) . |
class |
ShapeFieldCacheDistanceValueSource
An implementation of the Lucene ValueSource that returns the spatial distance
between an input point and a document's points in
ShapeFieldCacheProvider . |
class |
ShapePredicateValueSource
A boolean ValueSource that compares a shape from a provided ValueSource with a given Shape and sees
if it matches a given
SpatialOperation (the predicate). |
Constructor and Description |
---|
CachingDoubleValueSource(ValueSource source) |
DistanceToShapeValueSource(ValueSource shapeValueSource,
com.spatial4j.core.shape.Point queryPoint,
double multiplier,
com.spatial4j.core.context.SpatialContext ctx) |
ShapeAreaValueSource(ValueSource shapeValueSource,
com.spatial4j.core.context.SpatialContext ctx,
boolean geoArea,
double multiplier) |
ShapePredicateValueSource(ValueSource shapeValuesource,
SpatialOperation op,
com.spatial4j.core.shape.Shape queryShape) |
ValueSourceFilter(Filter startingFilter,
ValueSource source,
double min,
double max) |
Modifier and Type | Class and Description |
---|---|
class |
DistanceValueSource
An implementation of the Lucene ValueSource model that returns the distance
for a
PointVectorStrategy . |
Modifier and Type | Method and Description |
---|---|
ValueSource |
PointVectorStrategy.makeDistanceValueSource(com.spatial4j.core.shape.Point queryPoint,
double multiplier) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.