public class ConnectedTermMatchingContext extends Object implements TermMatchingContext, FieldBridgeCustomization<TermMatchingContext>
Constructor and Description |
---|
ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext,
String[] fields,
org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer,
QueryBuildingContext queryContext) |
ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext,
String field,
org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer,
QueryBuildingContext queryContext) |
Modifier and Type | Method and Description |
---|---|
TermMatchingContext |
andField(String field)
field / property the term query is executed on
|
TermMatchingContext |
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)
|
TermMatchingContext |
ignoreAnalyzer()
Advanced
Do not execute the analyzer on the text.
|
TermMatchingContext |
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.
|
TermTermination |
matching(Object value)
Value searched in the field or fields.
|
TermMatchingContext |
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 ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext, String field, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
public ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext, String[] fields, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
public TermTermination matching(Object value)
TermMatchingContext
matching
in interface TermMatchingContext
value
- the value to matchthis
for method chainingpublic TermMatchingContext andField(String field)
TermMatchingContext
andField
in interface TermMatchingContext
field
- another field involved in the querythis
for method chainingpublic TermMatchingContext boostedTo(float boost)
FieldCustomization
boostedTo
in interface FieldCustomization<TermMatchingContext>
boost
- the boost value, it can be negative (advance)public TermMatchingContext ignoreAnalyzer()
FieldCustomization
ignoreAnalyzer
in interface FieldCustomization<TermMatchingContext>
public TermMatchingContext ignoreFieldBridge()
FieldCustomization
ignoreFieldBridge
in interface FieldCustomization<TermMatchingContext>
public TermMatchingContext withFieldBridge(FieldBridge fieldBridge)
FieldBridgeCustomization
withFieldBridge
in interface FieldBridgeCustomization<TermMatchingContext>
fieldBridge
- the field bridge to useCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved