FileDocCategorySizeDatePackage
SpanQuery.javaAPI DocApache Lucene 2.1.01773Wed Feb 14 10:46:38 GMT 2007org.apache.lucene.search.spans

SpanQuery

public abstract class SpanQuery extends Query
Base class for span-based queries.

Fields Summary
Constructors Summary
Methods Summary
protected org.apache.lucene.search.WeightcreateWeight(org.apache.lucene.search.Searcher searcher)

    return new SpanWeight(this, searcher);
  
public abstract java.lang.StringgetField()
Returns the name of the field matched by this query.

public abstract org.apache.lucene.search.spans.SpansgetSpans(org.apache.lucene.index.IndexReader reader)
Expert: Returns the matches for this query in an index. Used internally to search for spans.

public abstract java.util.CollectiongetTerms()
Returns a collection of all terms matched by this query.

deprecated
use extractTerms instead
see
Query#extractTerms(Set)