Package org.hibernate.search.bridge.util
Class NumericFieldUtils
java.lang.Object
org.hibernate.search.bridge.util.NumericFieldUtils
Utility class to handle Numeric Fields
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic QuerycreateExactMatchQuery(String fieldName, Object value) Will create a RangeQuery matching exactly the provided value: lower and upper value match, and bounds are included.static QuerycreateNumericRangeQuery(String fieldName, Object from, Object to, boolean includeLower, boolean includeUpper) static voidsetNumericValue(Object value, NumericField numericField)
-
Constructor Details
-
NumericFieldUtils
public NumericFieldUtils()
-
-
Method Details
-
createNumericRangeQuery
-
createExactMatchQuery
Will create a RangeQuery matching exactly the provided value: lower and upper value match, and bounds are included. This should perform as efficiently as a TermQuery.- Parameters:
fieldName-value-- Returns:
- the created Query
-
setNumericValue
-