Serializable, CloneableFieldMaskingSpanQuery, SpanMultiTermQueryWrapper, SpanNearQuery, SpanNotQuery, SpanOrQuery, SpanPositionCheckQuery, SpanTermQuerypublic abstract class SpanQuery extends Query
| Constructor | Description |
|---|---|
SpanQuery() |
| Modifier and Type | Method | Description |
|---|---|---|
Weight |
createWeight(Searcher searcher) |
Expert: Constructs an appropriate Weight implementation for this query.
|
abstract String |
getField() |
Returns the name of the field matched by this query.
|
abstract Spans |
getSpans(IndexReader reader) |
Expert: Returns the matches for this query in an index.
|
finalize, getClass, notify, notifyAll, wait, wait, waitclone, combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, toString, weightpublic abstract Spans getSpans(IndexReader reader) throws IOException
IOExceptionpublic abstract String getField()
public Weight createWeight(Searcher searcher) throws IOException
QueryOnly implemented by primitive queries, which re-write to themselves.
createWeight in class QueryIOExceptionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.