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
public PhraseTermination sentence(String sentence)
PhraseMatchingContext
sentence
in interface PhraseMatchingContext
public PhraseMatchingContext boostedTo(float boost)
FieldCustomization
boostedTo
in interface FieldCustomization<PhraseMatchingContext>
public PhraseMatchingContext ignoreAnalyzer()
FieldCustomization
ignoreAnalyzer
in interface FieldCustomization<PhraseMatchingContext>
public PhraseMatchingContext ignoreFieldBridge()
FieldCustomization
ignoreFieldBridge
in interface FieldCustomization<PhraseMatchingContext>
Copyright © 2006–2013 Hibernate. All rights reserved.