## Uses of Class
org.apache.lucene.search.spans.SpanNearQuery

- Packages that use SpanNearQuery
  Package | Description
  --- | ---
  org.apache.lucene.search.payloads | The payloads package provides Query mechanisms for finding and using payloads.
  org.apache.lucene.search.spans | The calculus of spans.

- - ### Uses of SpanNearQuery in org.apache.lucene.search.payloads

    Subclasses of SpanNearQuery in org.apache.lucene.search.payloads
    Modifier and Type | Class and Description
    --- | ---
    `class` | `PayloadNearQuery` This class is very similar to `SpanNearQuery` except that it factors in the value of the payloads located at each of the positions where the `TermSpans` occurs.

  - ### Uses of SpanNearQuery in org.apache.lucene.search.spans

    Methods in org.apache.lucene.search.spans that return SpanNearQuery
    Modifier and Type | Method and Description
    --- | ---
    `SpanNearQuery` | SpanNearQuery.`clone()`

    Constructors in org.apache.lucene.search.spans with parameters of type SpanNearQuery
    Constructor and Description
    `NearSpansOrdered(SpanNearQuery spanNearQuery, AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts)`
    `NearSpansOrdered(SpanNearQuery spanNearQuery, AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts, boolean collectPayloads)`
    `NearSpansUnordered(SpanNearQuery query, AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts)`
    `SpanNearPayloadCheckQuery(SpanNearQuery match, Collection<byte[]> payloadToMatch)`

Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.