Class SpanMultiTermQueryWrapper<Q>.TopTermsSpanBooleanQueryRewrite
A rewrite method that first translates each term into a Span
This rewrite method only uses the top scoring terms so it will not overflow the boolean max clause count.
Inheritance
System.Object
SpanMultiTermQueryWrapper<Q>.TopTermsSpanBooleanQueryRewrite
Namespace: Lucene.Net.Search.Spans
Assembly: Lucene.Net.dll
Syntax
public sealed class TopTermsSpanBooleanQueryRewrite : SpanRewriteMethod
Constructors
| Improve this Doc View SourceTopTermsSpanBooleanQueryRewrite(Int32)
Create a SpanMultiTermQueryWrapper<Q>.TopTermsSpanBooleanQueryRewrite for
at most size
terms.
Declaration
public TopTermsSpanBooleanQueryRewrite(int size)
Parameters
Type | Name | Description |
---|---|---|
System. |
size |
Properties
| Improve this Doc View SourceCount
return the maximum priority queue size.
NOTE: This was size() in Lucene.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
| Improve this Doc View SourceEquals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System. |
obj |
Returns
Type | Description |
---|---|
System. |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Rewrite(IndexReader, MultiTermQuery)
Declaration
public override Query Rewrite(IndexReader reader, MultiTermQuery query)
Parameters
Type | Name | Description |
---|---|---|
Index |
reader | |
Multi |
query |
Returns
Type | Description |
---|---|
Query |