Class SpanPositionCheckQuery
Base class for filtering a SpanQuery based on the position of a match.
Inheritance
System.Object
SpanPositionCheckQuery
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lucene.Net.Search.Spans
Assembly: Lucene.Net.dll
Syntax
public abstract class SpanPositionCheckQuery : SpanQuery
Constructors
| Improve this Doc View SourceSpanPositionCheckQuery(SpanQuery)
Declaration
public SpanPositionCheckQuery(SpanQuery match)
Parameters
Type | Name | Description |
---|---|---|
SpanQuery | match |
Fields
| Improve this Doc View Sourcem_match
Declaration
protected SpanQuery m_match
Field Value
Type | Description |
---|---|
SpanQuery |
Properties
| Improve this Doc View SourceField
Declaration
public override string Field { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceMatch
Declaration
public virtual SpanQuery Match { get; }
Property Value
Type | Description |
---|---|
SpanQuery | The SpanQuery whose matches are filtered. |
Methods
| Improve this Doc View SourceAcceptPosition(Spans)
Implementing classes are required to return whether the current position is a match for the passed in "match" SpanQuery.
This is only called if the underlying Next() for the match is successful
Declaration
protected abstract SpanPositionCheckQuery.AcceptStatus AcceptPosition(Spans spans)
Parameters
Type | Name | Description |
---|---|---|
Spans | spans | The Spans instance, positioned at the spot to check |
Returns
Type | Description |
---|---|
SpanPositionCheckQuery.AcceptStatus | Whether the match is accepted, rejected, or rejected and should move to the next doc. |
See Also
Next()
ExtractTerms(ISet<Term>)
Declaration
public override void ExtractTerms(ISet<Term> terms)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ISet<Term> | terms |
Overrides
| Improve this Doc View SourceGetSpans(AtomicReaderContext, IBits, IDictionary<Term, TermContext>)
Declaration
public override Spans GetSpans(AtomicReaderContext context, IBits acceptDocs, IDictionary<Term, TermContext> termContexts)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | |
IBits | acceptDocs | |
System.Collections.Generic.IDictionary<Term, TermContext> | termContexts |
Returns
Type | Description |
---|---|
Spans |
Overrides
| Improve this Doc View SourceRewrite(IndexReader)
Declaration
public override Query Rewrite(IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader |
Returns
Type | Description |
---|---|
Query |