org.apache.lucene.search.spans
Class SpanQuery
- Cloneable, java.io.Serializable
public abstract class SpanQuery
Base class for span-based queries.
protected 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.
|
abstract Collection | getTerms() - Returns a collection of all terms matched by this query.
|
clone , combine , createWeight , getBoost , getSimilarity , mergeBooleanQueries , rewrite , setBoost , toString , toString , weight |
createWeight
protected Weight createWeight(Searcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
- createWeight in interface Query
getField
public abstract String getField()
Returns the name of the field matched by this query.
getSpans
public abstract Spans getSpans(IndexReader reader)
throws IOException
Expert: Returns the matches for this query in an index. Used internally
to search for spans.
getTerms
public abstract Collection getTerms()
Returns a collection of all terms matched by this query.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.