Class SpanBooleanQueryRewriteWithMaxClause


public class SpanBooleanQueryRewriteWithMaxClause extends
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.
  • Constructor Details

    • SpanBooleanQueryRewriteWithMaxClause

      public SpanBooleanQueryRewriteWithMaxClause()
    • SpanBooleanQueryRewriteWithMaxClause

      public SpanBooleanQueryRewriteWithMaxClause(int maxExpansions, boolean hardLimit)
  • Method Details

    • getMaxExpansions

      public int getMaxExpansions()
    • isHardLimit

      public boolean isHardLimit()
    • rewrite

      public rewrite(org.apache.lucene.index.IndexReader reader, query) throws IOException
      Specified by:
      rewrite in class