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)
PhraseMatchingContext
andField
in interface PhraseMatchingContext
field
- the name of the fieldthis
for method chainingpublic PhraseTermination sentence(String sentence)
PhraseMatchingContext
sentence
in interface PhraseMatchingContext
sentence
- the sentence to matchPhraseTermination
for method chainingpublic PhraseMatchingContext boostedTo(float boost)
FieldCustomization
boostedTo
in interface FieldCustomization<PhraseMatchingContext>
boost
- the boost value, it can be negative (advance)public PhraseMatchingContext ignoreAnalyzer()
FieldCustomization
ignoreAnalyzer
in interface FieldCustomization<PhraseMatchingContext>
public PhraseMatchingContext ignoreFieldBridge()
FieldCustomization
ignoreFieldBridge
in interface FieldCustomization<PhraseMatchingContext>
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved