Class SpanWeight

    • Constructor Detail

      • SpanWeight

        public SpanWeight​(SpanQuery query,
                          IndexSearcher searcher,
                          Map<Term,​TermContext> termContexts,
                          float boost)
                   throws IOException
        Create a new SpanWeight
        Parameters:
        query - the parent query
        searcher - the IndexSearcher to query against
        termContexts - a map of terms to termcontexts for use in building the similarity. May be null if scores are not required
        Throws:
        IOException - on error