Constructor TermRangeFilter
TermRangeFilter(String, String, String, Boolean, Boolean)
lowerTerm is null and includeLower is true (similar for upperTerm and includeUpper)
Declaration
public TermRangeFilter(String fieldName, String lowerTerm, String upperTerm, bool includeLower, bool includeUpper)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | The field this range applies to |
System.String | lowerTerm | The lower bound on this range |
System.String | upperTerm | The upper bound on this range |
System.Boolean | includeLower | Does this range include the lower bound? |
System.Boolean | includeUpper | Does this range include the upper bound? |
TermRangeFilter(String, String, String, Boolean, Boolean, Globalization.CompareInfo)
WARNING: Using this constructor and supplying a non-null
value in the collator
parameter will cause every single
index Term in the Field referenced by lowerTerm and/or upperTerm to be
examined. Depending on the number of index Terms in this Field, the
operation could be very slow.
Declaration
public TermRangeFilter(String fieldName, String lowerTerm, String upperTerm, bool includeLower, bool includeUpper, Globalization.CompareInfo collator)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
System.String | lowerTerm | The lower bound on this range |
System.String | upperTerm | The upper bound on this range |
System.Boolean | includeLower | Does this range include the lower bound? |
System.Boolean | includeUpper | Does this range include the upper bound? |
System.Globalization.CompareInfo | collator | The collator to use when determining range inclusion; set to null to use Unicode code point ordering instead of collation. |