Method Rewrite
Rewrite(IndexReader)
To rewrite to a simpler form, instead return a simpler enum from GetTermsEnum(Terms, AttributeSource). For example, to rewrite to a single term, return a SingleTermsEnum.
Declaration
public override sealed Query Rewrite(IndexReader reader)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader |
Returns
Type | Description |
---|---|
Query |