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) |
static void |
setNumericValue(Object value,
org.apache.lucene.document.NumericField numericField) |
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)
fieldName
- value
- public static void setNumericValue(Object value, org.apache.lucene.document.NumericField numericField)
Copyright © 2006–2015 Hibernate. All rights reserved.