org.apache.lucene.search.spans
public abstract class SpanQuery extends Query
Constructor and Description |
---|
SpanQuery() |
Modifier and Type | Method and Description |
---|---|
Weight |
createWeight(Searcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
|
abstract java.lang.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 java.util.Collection |
getTerms()
Deprecated.
use extractTerms instead
|
clone, combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, toString, weight
public abstract Spans getSpans(IndexReader reader) throws java.io.IOException
java.io.IOException
public abstract java.lang.String getField()
public abstract java.util.Collection getTerms()
Query.extractTerms(Set)
public Weight createWeight(Searcher searcher) throws java.io.IOException
Query
Only implemented by primitive queries, which re-write to themselves.
createWeight
in class Query
java.io.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.