public class ConnectedMoreLikeThisContext extends Object implements MoreLikeThisContext
Constructor and Description |
---|
ConnectedMoreLikeThisContext(QueryBuildingContext context) |
Modifier and Type | Method and Description |
---|---|
MoreLikeThisContext |
boostedTo(float boost)
Boost the query 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)
|
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.
|
MoreLikeThisContext |
filteredBy(Filter filter)
Filter the query results with the Filter instance
|
MoreLikeThisContext |
withConstantScore()
All results matching the query have a constant score equals to the boost
FIXME is that true?
|
public ConnectedMoreLikeThisContext(QueryBuildingContext context)
public MoreLikeThisContext excludeEntityUsedForComparison()
MoreLikeThisContext
excludeEntityUsedForComparison
in interface MoreLikeThisContext
public MoreLikeThisContext favorSignificantTermsWithFactor(float factor)
MoreLikeThisContext
favorSignificantTermsWithFactor
in interface MoreLikeThisContext
public MoreLikeThisTerminalMatchingContext comparingAllFields()
MoreLikeThisContext
comparingAllFields
in interface MoreLikeThisContext
public MoreLikeThisOpenedMatchingContext comparingFields(String... fieldNames)
MoreLikeThisContext
comparingFields
in interface MoreLikeThisContext
public MoreLikeThisOpenedMatchingContext comparingField(String fieldName)
MoreLikeThisContext
comparingField
in interface MoreLikeThisContext
public MoreLikeThisContext boostedTo(float boost)
QueryCustomization
boostedTo
in interface QueryCustomization<MoreLikeThisContext>
public MoreLikeThisContext withConstantScore()
QueryCustomization
withConstantScore
in interface QueryCustomization<MoreLikeThisContext>
public MoreLikeThisContext filteredBy(Filter filter)
QueryCustomization
filteredBy
in interface QueryCustomization<MoreLikeThisContext>
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved