FileDocCategorySizeDatePackage
SpanQuery.javaAPI DocApache Lucene 1.4.31464Mon Feb 02 13:27:52 GMT 2004org.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.