Class ConnectedTermMatchingContext
java.lang.Object
org.hibernate.search.query.dsl.impl.ConnectedTermMatchingContext
- All Implemented Interfaces:
FieldCustomization<TermMatchingContext>,TermMatchingContext
-
Constructor Summary
ConstructorsConstructorDescriptionConnectedTermMatchingContext(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) -
Method Summary
Modifier and TypeMethodDescriptionfield / property the term query is executed onboostedTo(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)Advanced Do not execute the analyzer on the text.Do not try and find the field bridge nor apply the object / string conversion matching objects should be of type String in this case.Value searched in the field or fields.
-
Constructor Details
-
ConnectedTermMatchingContext
public ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext, String field, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext) -
ConnectedTermMatchingContext
public ConnectedTermMatchingContext(org.hibernate.search.query.dsl.impl.TermQueryContext termContext, String[] fields, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
-
-
Method Details
-
matching
Description copied from interface:TermMatchingContextValue searched in the field or fields. The value is passed to the field's: - field bridge - analyzer (unless ignoreAnalyzer is called).- Specified by:
matchingin interfaceTermMatchingContext
-
andField
Description copied from interface:TermMatchingContextfield / property the term query is executed on- Specified by:
andFieldin interfaceTermMatchingContext
-
boostedTo
Description copied from interface:FieldCustomizationBoost 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)- Specified by:
boostedToin interfaceFieldCustomization<TermMatchingContext>
-
ignoreAnalyzer
Description copied from interface:FieldCustomizationAdvanced Do not execute the analyzer on the text. (It is usually a good idea to apply the analyzer)- Specified by:
ignoreAnalyzerin interfaceFieldCustomization<TermMatchingContext>
-
ignoreFieldBridge
Description copied from interface:FieldCustomizationDo not try and find the field bridge nor apply the object / string conversion matching objects should be of type String in this case.- Specified by:
ignoreFieldBridgein interfaceFieldCustomization<TermMatchingContext>
-