org.hibernate.search.query.dsl.impl
public class ConnectedRangeMatchingContext extends Object implements RangeMatchingContext, FieldBridgeCustomization<RangeMatchingContext>
RangeMatchingContext.FromRangeContext<T>| Constructor and Description |
|---|
ConnectedRangeMatchingContext(String fieldName,
org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer,
QueryBuildingContext queryContext) |
| Modifier and Type | Method and Description |
|---|---|
RangeTerminationExcludable |
above(Object above)
The field value must be above
above
You can exclude the value above by calling .excludeLimit() |
RangeMatchingContext |
andField(String field)
field / property the term query is executed on
|
RangeTerminationExcludable |
below(Object below)
The field value must be below
below
You can exclude the value below by calling .excludeLimit() |
RangeMatchingContext |
boostedTo(float boost)
Boost the field to a given value
Most of the time positive float:
- lower than 1 to diminish the weight
- higher than 1 to increase the weight
Could be negative but not unless you understand what is going on (advanced)
|
<T> RangeMatchingContext.FromRangeContext<T> |
from(T from) |
RangeMatchingContext |
ignoreAnalyzer()
Advanced
Do not execute the analyzer on the text.
|
RangeMatchingContext |
ignoreFieldBridge()
Do not try and find the field bridge nor apply the object / string conversion
matching objects should be of type String in this case.
|
RangeMatchingContext |
withFieldBridge(FieldBridge fieldBridge)
Sets the field bridge for querying the current field; any other bridge associated with this field will be ignored
for the query
|
public ConnectedRangeMatchingContext(String fieldName, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
public RangeMatchingContext andField(String field)
RangeMatchingContextandField in interface RangeMatchingContextpublic <T> RangeMatchingContext.FromRangeContext<T> from(T from)
from in interface RangeMatchingContextpublic RangeTerminationExcludable below(Object below)
RangeMatchingContextbelow
You can exclude the value below by calling .excludeLimit()below in interface RangeMatchingContextpublic RangeTerminationExcludable above(Object above)
RangeMatchingContextabove
You can exclude the value above by calling .excludeLimit()above in interface RangeMatchingContextpublic RangeMatchingContext boostedTo(float boost)
FieldCustomizationboostedTo in interface FieldCustomization<RangeMatchingContext>public RangeMatchingContext ignoreAnalyzer()
FieldCustomizationignoreAnalyzer in interface FieldCustomization<RangeMatchingContext>public RangeMatchingContext ignoreFieldBridge()
FieldCustomizationignoreFieldBridge in interface FieldCustomization<RangeMatchingContext>public RangeMatchingContext withFieldBridge(FieldBridge fieldBridge)
FieldBridgeCustomizationwithFieldBridge in interface FieldBridgeCustomization<RangeMatchingContext>fieldBridge - the field bridge to useCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved