Class FatScoringMatching

  • All Implemented Interfaces:
    Matching

    public class FatScoringMatching
    extends AbstractScoringMatching
    Scores a FatResultSet into a normal ResultSet for a given weighting model
    Since:
    4.0
    Author:
    Craig Macdonald
    • Field Detail

      • logger

        protected static final org.slf4j.Logger logger
      • SCORE_ONLY_FROM_MQT

        protected static final boolean SCORE_ONLY_FROM_MQT
    • Constructor Detail

      • FatScoringMatching

        public FatScoringMatching​(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)
      • FatScoringMatching

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

      • getInfo

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

        protected static boolean containsFieldPostings​(WritablePosting[][] postings)
      • match

        public ResultSet match​(java.lang.String queryNumber,
                               MatchingQueryTerms queryTerms)
                        throws java.io.IOException
        Description copied from interface: Matching
        Get a ResultSet for the given query terms.
        Specified by:
        match in interface Matching
        Overrides:
        match in class FilterMatching
        Parameters:
        queryNumber - - some ID of the query
        queryTerms - - query terms to match
        Returns:
        ResultSet - the matched results
        Throws:
        java.io.IOException - if a problem occurs during matching
      • 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