public abstract class SpanQuery extends Query
Constructor and Description |
---|
SpanQuery() |
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(IndexSearcher 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(AtomicReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Expert: Returns the matches for this query in an index.
|
public abstract Spans getSpans(AtomicReaderContext context, Bits acceptDocs, Map<Term,TermContext> termContexts) throws IOException
IOException
public abstract String getField()
public Weight createWeight(IndexSearcher searcher) throws IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.