Class FeaturedScoringMatching

    • Field Detail

      • logger

        protected static org.slf4j.Logger logger
      • index

        protected Index index
      • wModelNames

        protected java.lang.String[] wModelNames
      • dsmNames

        protected java.lang.String[] dsmNames
      • qiFeatureNames

        protected java.lang.String[] qiFeatureNames
      • sampleFeature

        protected boolean sampleFeature
      • filterUW

        public static final java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> filterUW
      • filterOW

        public static final java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> filterOW
      • filterProx

        public static final java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> filterProx
      • filterTerm

        public static final java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> filterTerm
    • Constructor Detail

      • FeaturedScoringMatching

        public FeaturedScoringMatching​(Index _index,
                                       Matching _parent,
                                       java.lang.String[] _featureNames,
                                       java.lang.Class<? extends AbstractScoringMatching> _scoringMatchingImpl)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • FeaturedScoringMatching

        public FeaturedScoringMatching​(Index _index,
                                       Matching _parent,
                                       java.lang.Class<? extends AbstractScoringMatching> _scoringMatchingImpl)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getModelNames

        protected static java.lang.String[] getModelNames​(java.lang.String property)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getModelNames

        protected static java.lang.String[] getModelNames​(java.lang.String property,
                                                          boolean optional)
                                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getTagPredictate

        public static final java.util.function.Predicate<org.apache.commons.lang3.tuple.Pair<java.lang.String,​java.util.Set<java.lang.String>>> getTagPredictate​(java.lang.String matches)
      • loadFeatures

        protected void loadFeatures​(java.lang.String[] featureNames)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • applyDSMs

        protected int applyDSMs​(Index localIndex,
                                java.lang.String queryNumber,
                                MatchingQueryTerms mqtLocal,
                                int numResults,
                                int[] inputDocids,
                                short[] inputOccurrences,
                                FeaturedResultSet rtr)
      • 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