org.hibernate.search.query.dsl.impl
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)
TermMatchingContextmatching in interface TermMatchingContextpublic TermMatchingContext andField(String field)
TermMatchingContextandField in interface TermMatchingContextpublic TermMatchingContext boostedTo(float boost)
FieldCustomizationboostedTo in interface FieldCustomization<TermMatchingContext>public TermMatchingContext ignoreAnalyzer()
FieldCustomizationignoreAnalyzer in interface FieldCustomization<TermMatchingContext>public TermMatchingContext ignoreFieldBridge()
FieldCustomizationignoreFieldBridge in interface FieldCustomization<TermMatchingContext>public TermMatchingContext withFieldBridge(FieldBridge fieldBridge)
FieldBridgeCustomizationwithFieldBridge in interface FieldBridgeCustomization<TermMatchingContext>fieldBridge - the field bridge to useCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved