Package org.apache.solr.ltr.feature
Class LegacyFieldValueFeature
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.solr.ltr.feature.Feature
-
- org.apache.solr.ltr.feature.FieldValueFeature
-
- org.apache.solr.ltr.feature.LegacyFieldValueFeature
-
- All Implemented Interfaces:
org.apache.lucene.util.Accountable
@Deprecated(since="9.4") public class LegacyFieldValueFeature extends FieldValueFeature
Deprecated.This feature returns the value of a field in the current document. The field must have stored="true" or docValues="true" properties. Example configuration:{ "name": "rawHits", "class": "org.apache.solr.ltr.feature.LegacyFieldValueFeature", "params": { "field": "hits" } }
There are 4 different types of FeatureScorers that a FieldValueFeatureWeight may use. The chosen scorer depends on the field attributes.
FieldValueFeatureScorer (FVFS): used for stored=true, no matter if docValues=true or docValues=false
NumericDocValuesFVFS: used for stored=false and docValues=true, if docValueType == NUMERIC
SortedDocValuesFVFS: used for stored=false and docValues=true, if docValueType == SORTED
DefaultValueFVFS: used for stored=false and docValues=true, a fallback scorer that is used on segments where no document has a value set in the field of this feature
Matches
FieldValueFeature
behaviour prior to 9.4 i.e. DocValues are not used when docValues=true is combined with stored=true.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.ltr.feature.FieldValueFeature
FieldValueFeature.FieldValueFeatureWeight
-
Nested classes/interfaces inherited from class org.apache.solr.ltr.feature.Feature
Feature.FeatureWeight
-
-
Field Summary
-
Fields inherited from class org.apache.solr.ltr.feature.FieldValueFeature
useDocValuesForStored
-
-
Constructor Summary
Constructors Constructor Description LegacyFieldValueFeature(String name, Map<String,Object> params)
Deprecated.
-
Method Summary
-
Methods inherited from class org.apache.solr.ltr.feature.FieldValueFeature
createWeight, getField, paramsToMap, setField, validate
-
Methods inherited from class org.apache.solr.ltr.feature.Feature
defaultParamsToMap, equals, getDefaultValue, getIndex, getInstance, getName, hashCode, ramBytesUsed, setDefaultValue, setIndex, toString, visit
-
Methods inherited from class org.apache.lucene.search.Query
classHash, createWeight, rewrite, rewrite, sameClassAs, toString
-
-