Class FieldValueFeature.FieldValueFeatureWeight

  • All Implemented Interfaces:
    org.apache.lucene.search.SegmentCacheable
    Enclosing class:
    FieldValueFeature

    public class FieldValueFeature.FieldValueFeatureWeight
    extends Feature.FeatureWeight
    • Constructor Detail

      • FieldValueFeatureWeight

        public FieldValueFeatureWeight​(org.apache.lucene.search.IndexSearcher searcher,
                                       SolrQueryRequest request,
                                       org.apache.lucene.search.Query originalQuery,
                                       Map<String,​String[]> efi)
    • Method Detail

      • scorer

        public Feature.FeatureWeight.FeatureScorer scorer​(org.apache.lucene.index.LeafReaderContext context)
                                                   throws IOException
        Return a FeatureScorer that uses docValues or storedFields if no docValues are present
        Specified by:
        scorer in class Feature.FeatureWeight
        Parameters:
        context - the segment this FeatureScorer is working with
        Returns:
        FeatureScorer for the current segment and field
        Throws:
        IOException - as defined by abstract class Feature