public final class NumericFieldUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.search.Query |
createExactMatchQuery(String fieldName,
Object value)
Will create a
RangeQuery matching exactly the provided value: lower
and upper value match, and bounds are included. |
static org.apache.lucene.search.Query |
createNumericRangeQuery(String fieldName,
Object from,
Object to,
boolean includeLower,
boolean includeUpper) |
public static org.apache.lucene.search.Query createNumericRangeQuery(String fieldName, Object from, Object to, boolean includeLower, boolean includeUpper)
public static org.apache.lucene.search.Query createExactMatchQuery(String fieldName, Object value)
RangeQuery matching exactly the provided value: lower
and upper value match, and bounds are included. This should perform
as efficiently as a TermQuery.fieldName - the field name the query targetsvalue - the value to matchQueryCopyright © 2006–2014 Hibernate. All rights reserved.