public interface PhraseContext extends QueryCustomization<PhraseContext>
Modifier and Type | Method and Description |
---|---|
PhraseMatchingContext |
onField(String fieldName)
field / property the term query is executed on
|
PhraseContext |
withSlop(int slop)
Sets the number of other words permitted between words in query phrase.
|
boostedTo, filteredBy, withConstantScore
PhraseContext withSlop(int slop)
WITHIN
or NEAR
operator.
Defaults to 0slop
- the slop valuePhraseContext
PhraseMatchingContext onField(String fieldName)
fieldName
- the name of the fieldPhraseContext
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved