Class SpanQuery

    • Constructor Detail

      • SpanQuery

        public SpanQuery()
    • Method Detail

      • getField

        public abstract String getField()
        Returns the name of the field matched by this query.
      • createWeight

        public abstract SpanWeight createWeight​(IndexSearcher searcher,
                                                ScoreMode scoreMode,
                                                float boost)
                                         throws IOException
        Description copied from class: Query
        Expert: Constructs an appropriate Weight implementation for this query.

        Only implemented by primitive queries, which re-write to themselves.

        Overrides:
        createWeight in class Query
        scoreMode - How the produced scorers will be consumed.
        boost - The boost that is propagated by the parent queries.
        Throws:
        IOException