org.hibernate.search.query.dsl.impl
public class ConnectedPhraseMatchingContext extends Object implements PhraseMatchingContext
| Constructor and Description |
|---|
ConnectedPhraseMatchingContext(String fieldName,
PhraseQueryContext phraseContext,
org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer,
QueryBuildingContext queryContext) |
| Modifier and Type | Method and Description |
|---|---|
PhraseMatchingContext |
andField(String field)
field / property the term query is executed on
|
PhraseMatchingContext |
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)
|
PhraseMatchingContext |
ignoreAnalyzer()
Advanced
Do not execute the analyzer on the text.
|
PhraseMatchingContext |
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.
|
PhraseTermination |
sentence(String sentence)
Sentence to match.
|
public ConnectedPhraseMatchingContext(String fieldName, PhraseQueryContext phraseContext, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
public PhraseMatchingContext andField(String field)
PhraseMatchingContextandField in interface PhraseMatchingContextpublic PhraseTermination sentence(String sentence)
PhraseMatchingContextsentence in interface PhraseMatchingContextpublic PhraseMatchingContext boostedTo(float boost)
FieldCustomizationboostedTo in interface FieldCustomization<PhraseMatchingContext>public PhraseMatchingContext ignoreAnalyzer()
FieldCustomizationignoreAnalyzer in interface FieldCustomization<PhraseMatchingContext>public PhraseMatchingContext ignoreFieldBridge()
FieldCustomizationignoreFieldBridge in interface FieldCustomization<PhraseMatchingContext>Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved