public abstract class

SpanQuery

extends Query
java.lang.Object
   ↳ org.apache.lucene.search.Query
     ↳ org.apache.lucene.search.spans.SpanQuery
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for span-based queries.

Summary

Public Constructors
SpanQuery()
Public Methods
Weight createWeight(Searcher searcher)
Expert: Constructs an appropriate Weight implementation for this query.
abstract 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.
[Expand]
Inherited Methods
From class org.apache.lucene.search.Query
From class java.lang.Object

Public Constructors

public SpanQuery ()

Public Methods

public Weight createWeight (Searcher searcher)

Expert: Constructs an appropriate Weight implementation for this query.

Only implemented by primitive queries, which re-write to themselves.

Throws
IOException

public abstract String getField ()

Returns the name of the field matched by this query.

public abstract Spans getSpans (IndexReader reader)

Expert: Returns the matches for this query in an index. Used internally to search for spans.

Throws
IOException