org.apache.lucene.search.spans
Class SpanQuery
- java.lang.Object
-
- org.apache.lucene.search.Query
-
- org.apache.lucene.search.spans.SpanQuery
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- SpanFirstQuery, SpanNearQuery, SpanNotQuery, SpanOrQuery, SpanTermQuery
public abstract class SpanQuery extends Query
Base class for span-based queries.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SpanQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method and Description abstract java.lang.StringgetField()Returns the name of the field matched by this query.abstract SpansgetSpans(IndexReader reader)Expert: Returns the matches for this query in an index.abstract java.util.CollectiongetTerms()Deprecated.use extractTerms instead-
Methods inherited from class org.apache.lucene.search.Query
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, toString, weight
-
-
-
-
Method Detail
-
getSpans
public abstract Spans getSpans(IndexReader reader) throws java.io.IOException
Expert: Returns the matches for this query in an index. Used internally to search for spans.- Throws:
java.io.IOException
-
getField
public abstract java.lang.String getField()
Returns the name of the field matched by this query.
-
getTerms
public abstract java.util.Collection getTerms()
Deprecated. use extractTerms insteadReturns a collection of all terms matched by this query.- See Also:
Query.extractTerms(Set)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG