Class SpanQuery
Base class for span-based queries.
Inheritance
System.Object
SpanQuery
Inherited Members
Namespace: Lucene.Net.Search.Spans
Assembly: Lucene.Net.dll
Syntax
public abstract class SpanQuery : Query
Properties
| Improve this Doc View SourceField
Returns the name of the field matched by this query.
Note that this may return null
if the query matches no terms.
Declaration
public abstract string Field { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreateWeight(IndexSearcher)
Declaration
public override Weight CreateWeight(IndexSearcher searcher)
Parameters
Type | Name | Description |
---|---|---|
IndexSearcher | searcher |
Returns
Type | Description |
---|---|
Weight |
Overrides
| Improve this Doc View SourceGetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
Expert: Returns the matches for this query in an index. Used internally to search for spans.
Declaration
public abstract Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs | |
IDictionary<Term, TermContext> | termContexts |
Returns
Type | Description |
---|---|
Spans |