public interface MoreLikeThisContext extends QueryCustomization<MoreLikeThisContext>
| Modifier and Type | Method and Description |
|---|---|
MoreLikeThisTerminalMatchingContext |
comparingAllFields()
Match the content using "all" of the indexed fields of the entity.
|
MoreLikeThisOpenedMatchingContext |
comparingField(String fieldName)
Match the content using the selected field of the entity.
|
MoreLikeThisOpenedMatchingContext |
comparingFields(String... fieldNames)
Match the content using the selected fields of the entity.
|
MoreLikeThisContext |
excludeEntityUsedForComparison()
Exclude the entity used for comparison from the results
|
MoreLikeThisContext |
favorSignificantTermsWithFactor(float factor)
Boost significant terms relative to their scores.
|
boostedTo, filteredBy, withConstantScoreMoreLikeThisContext excludeEntityUsedForComparison()
this for method chainingMoreLikeThisContext favorSignificantTermsWithFactor(float factor)
factor - the factor valuethis for method chainingMoreLikeThisTerminalMatchingContext comparingAllFields()
this for method chainingMoreLikeThisOpenedMatchingContext comparingFields(String... fieldNames)
fieldNames - the names of the fields to use for the comparisonthis for method chainingMoreLikeThisOpenedMatchingContext comparingField(String fieldName)
fieldName - the name of the field to comparethis for method chainingCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved