Class TermCollectingRewrite<B>

    • Constructor Detail

      • TermCollectingRewrite

        TermCollectingRewrite()
    • Method Detail

      • getTopLevelBuilder

        protected abstract B getTopLevelBuilder()
                                         throws java.io.IOException
        Return a suitable builder for the top-level Query for holding all expanded terms.
        Throws:
        java.io.IOException
      • build

        protected abstract Query build​(B builder)
        Finalize the creation of the query from the builder.
      • addClause

        protected final void addClause​(B topLevel,
                                       Term term,
                                       int docCount,
                                       float boost)
                                throws java.io.IOException
        Add a MultiTermQuery term to the top-level query builder.
        Throws:
        java.io.IOException
      • addClause

        protected abstract void addClause​(B topLevel,
                                          Term term,
                                          int docCount,
                                          float boost,
                                          TermStates states)
                                   throws java.io.IOException
        Throws:
        java.io.IOException