Class SpanBooleanQueryRewriteWithMaxClause

  • public class SpanBooleanQueryRewriteWithMaxClause
    A span rewrite method that extracts the first maxExpansions terms that match the MultiTermQuery in the terms dictionary. The rewrite throws an error if more than maxExpansions terms are found and hardLimit is set.
    • Method Summary

      Modifier and Type Method Description
      int getMaxExpansions()  
      boolean isHardLimit() rewrite​(org.apache.lucene.index.IndexReader reader, query)  
      • Methods inherited from class

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpanBooleanQueryRewriteWithMaxClause

        public SpanBooleanQueryRewriteWithMaxClause()
      • SpanBooleanQueryRewriteWithMaxClause

        public SpanBooleanQueryRewriteWithMaxClause​(int maxExpansions,
                                                    boolean hardLimit)
    • Method Detail

      • getMaxExpansions

        public int getMaxExpansions()
      • isHardLimit

        public boolean isHardLimit()
      • rewrite

        public rewrite​(org.apache.lucene.index.IndexReader reader,
        Specified by:
        rewrite in class