Class SpanFirstQuery
Matches spans near the beginning of a field.
This class is a simple extension of SpanPositionRangeQuery in that it assumes the start to be zero and only checks the end boundary.
Inheritance
System.Object
SpanFirstQuery
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 class SpanFirstQuery : SpanPositionRangeQuery
Constructors
| Improve this Doc View SourceSpanFirstQuery(SpanQuery, Int32)
Construct a SpanFirstQuery matching spans in match
whose end
position is less than or equal to end
.
Declaration
public SpanFirstQuery(SpanQuery match, int end)
Parameters
Type | Name | Description |
---|---|---|
SpanQuery | match | |
System.Int32 | end |
Methods
| Improve this Doc View SourceAcceptPosition(Spans)
Declaration
protected override SpanPositionCheckQuery.AcceptStatus AcceptPosition(Spans spans)
Parameters
Type | Name | Description |
---|---|---|
Spans | spans |
Returns
Type | Description |
---|---|
SpanPositionCheckQuery.AcceptStatus |
Overrides
| Improve this Doc View SourceClone()
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object o)
Parameters
Type | Name | Description |
---|---|---|
System.Object | o |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceToString(String)
Declaration
public override string ToString(string field)
Parameters
Type | Name | Description |
---|---|---|
System.String | field |
Returns
Type | Description |
---|---|
System.String |