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)
RangeMatchingContext
andField
in interface RangeMatchingContext
field
- the name of the fieldRangeMatchingContext
public <T> RangeMatchingContext.FromRangeContext<T> from(T from)
from
in interface RangeMatchingContext
public RangeTerminationExcludable below(Object below)
RangeMatchingContext
below
You can exclude the value below
by calling .excludeLimit()
below
in interface RangeMatchingContext
below
- the lower limit of the rangeRangeTerminationExcludable
public RangeTerminationExcludable above(Object above)
RangeMatchingContext
above
You can exclude the value above
by calling .excludeLimit()
above
in interface RangeMatchingContext
above
- the upper limit of the rangeRangeTerminationExcludable
public RangeMatchingContext boostedTo(float boost)
FieldCustomization
boostedTo
in interface FieldCustomization<RangeMatchingContext>
boost
- the boost value, it can be negative (advance)public RangeMatchingContext ignoreAnalyzer()
FieldCustomization
ignoreAnalyzer
in interface FieldCustomization<RangeMatchingContext>
public RangeMatchingContext ignoreFieldBridge()
FieldCustomization
ignoreFieldBridge
in interface FieldCustomization<RangeMatchingContext>
public RangeMatchingContext withFieldBridge(FieldBridge fieldBridge)
FieldBridgeCustomization
withFieldBridge
in interface FieldBridgeCustomization<RangeMatchingContext>
fieldBridge
- the field bridge to useCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved