- Enclosing class:
- FieldValueFeature.FieldValueFeatureWeight
public final class FieldValueFeature.FieldValueFeatureWeight.DefaultValueFieldValueFeatureScorer
extends Feature.FeatureWeight.FeatureScorer
A FeatureScorer that always returns the default value.
It is used as a fallback for cases when a segment does not have any documents that contain doc values for a field.
By doing so, we prevent a fallback to the FieldValueFeatureScorer, which would also return the default value but
in a less performant way because it would first try to read the stored fields for the doc (which aren't present).