Class ExtendedCommonTermsQuery


  • @Deprecated
    public class ExtendedCommonTermsQuery
    extends CommonTermsQuery
    Deprecated.
    Since max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.
    Extended version of CommonTermsQuery that allows to pass in a minimumNumberShouldMatch specification that uses the actual num of high frequent terms to calculate the minimum matching terms.
    • Method Detail

      • calcMinimumNumberShouldMatch

        protected int calcMinimumNumberShouldMatch​(String spec,
                                                   int numOptional)
        Deprecated.
      • setHighFreqMinimumNumberShouldMatch

        public void setHighFreqMinimumNumberShouldMatch​(String spec)
        Deprecated.
      • getHighFreqMinimumNumberShouldMatchSpec

        public String getHighFreqMinimumNumberShouldMatchSpec()
        Deprecated.
      • setLowFreqMinimumNumberShouldMatch

        public void setLowFreqMinimumNumberShouldMatch​(String spec)
        Deprecated.
      • getLowFreqMinimumNumberShouldMatchSpec

        public String getLowFreqMinimumNumberShouldMatchSpec()
        Deprecated.
      • getMaxTermFrequency

        public float getMaxTermFrequency()
        Deprecated.
        Description copied from class: CommonTermsQuery
        Gets the maximum threshold of a terms document frequency to be considered a low frequency term.
        Overrides:
        getMaxTermFrequency in class CommonTermsQuery