Class ScoringMatching

  • All Implemented Interfaces:
    Matching
    Direct Known Subclasses:
    ScoringMatchingWithFat

    public class ScoringMatching
    extends AbstractScoringMatching
    Matching implementation that uses a parent Matching instance to get the docids to work with. Scores are replaced using the specified weighting model. Scoring is done in a DAAT fashion.
    Author:
    craigm
    • Constructor Detail

      • ScoringMatching

        public ScoringMatching​(Index _index,
                               Matching _parent,
                               WeightingModel _wm,
                               java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> _filter)
      • ScoringMatching

        public ScoringMatching​(Index _index,
                               Matching _parent)
    • Method Detail

      • finalise

        protected void finalise​(int numScored)
      • makeResultSet

        protected void makeResultSet​(int docCount,
                                     java.lang.String[] qs,
                                     EntryStatistics[] es,
                                     double[] ks,
                                     java.util.Set<java.lang.String>[] tags)
      • assignScore

        protected void assignScore​(int offset,
                                   int docid,
                                   double score,
                                   IterablePosting[] postings)
      • getFinalResultSet

        protected ResultSet getFinalResultSet()
      • getInfo

        public java.lang.String getInfo()
        Description copied from interface: Matching
        Return a human readable description of this Matching class
      • setCollectionStatistics

        public void setCollectionStatistics​(CollectionStatistics cs)
        Description copied from interface: Matching
        Update the collection statistics being used by this matching instance
        Parameters:
        cs - CollectionStatistics to use during matching