FileDocCategorySizeDatePackage
SpanQuery.javaAPI DocApache Lucene 1.91483Mon Feb 20 09:19:52 GMT 2006org.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.