Class MultiTermQuery.ConstantScoreAutoRewrite

    • Field Detail

      • DEFAULT_TERM_COUNT_CUTOFF

        public static int DEFAULT_TERM_COUNT_CUTOFF
      • DEFAULT_DOC_COUNT_PERCENT

        public static double DEFAULT_DOC_COUNT_PERCENT
    • Constructor Detail

      • ConstantScoreAutoRewrite

        public ConstantScoreAutoRewrite()
    • Method Detail

      • setDocCountPercent

        public void setDocCountPercent​(double percent)
        If the number of documents to be visited in the postings exceeds this specified percentage of the maxDoc() for the index, then MultiTermQuery.CONSTANT_SCORE_FILTER_REWRITE is used.
        Parameters:
        percent - 0.0 to 100.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object