Class LTRScoringQuery.ModelWeight

java.lang.Object
org.apache.lucene.search.Weight
org.apache.solr.ltr.LTRScoringQuery.ModelWeight
All Implemented Interfaces:
org.apache.lucene.search.SegmentCacheable
Enclosing class:
LTRScoringQuery

public class LTRScoringQuery.ModelWeight extends org.apache.lucene.search.Weight
  • Constructor Details

  • Method Details

    • getAllFeaturesInStore

      public LTRScoringQuery.FeatureInfo[] getAllFeaturesInStore()
    • getModelFeatureValuesNormalized

      public float[] getModelFeatureValuesNormalized()
    • normalizeFeatures

      public void normalizeFeatures()
      Goes through all the stored feature values, and calculates the normalized values for all the features that will be used for scoring. Then calculate and return the model's score.
    • explain

      public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.LeafReaderContext context, int doc) throws IOException
      Specified by:
      explain in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • scorerSupplier

      public org.apache.lucene.search.ScorerSupplier scorerSupplier(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Specified by:
      scorerSupplier in class org.apache.lucene.search.Weight
      Throws:
      IOException
    • modelScorer

      public LTRScoringQuery.ModelWeight.ModelScorer modelScorer(org.apache.lucene.index.LeafReaderContext context) throws IOException
      Throws:
      IOException
    • isCacheable

      public boolean isCacheable(org.apache.lucene.index.LeafReaderContext ctx)