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(org.apache.lucene.search.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()
MoreLikeThisContextexcludeEntityUsedForComparison in interface MoreLikeThisContextpublic MoreLikeThisContext favorSignificantTermsWithFactor(float factor)
MoreLikeThisContextfavorSignificantTermsWithFactor in interface MoreLikeThisContextpublic MoreLikeThisTerminalMatchingContext comparingAllFields()
MoreLikeThisContextcomparingAllFields in interface MoreLikeThisContextpublic MoreLikeThisOpenedMatchingContext comparingFields(String... fieldNames)
MoreLikeThisContextcomparingFields in interface MoreLikeThisContextpublic MoreLikeThisOpenedMatchingContext comparingField(String fieldName)
MoreLikeThisContextcomparingField in interface MoreLikeThisContextpublic MoreLikeThisContext boostedTo(float boost)
QueryCustomizationboostedTo in interface QueryCustomization<MoreLikeThisContext>public MoreLikeThisContext withConstantScore()
QueryCustomizationwithConstantScore in interface QueryCustomization<MoreLikeThisContext>public MoreLikeThisContext filteredBy(org.apache.lucene.search.Filter filter)
QueryCustomizationfilteredBy in interface QueryCustomization<MoreLikeThisContext>Copyright © 2006–2015 Hibernate. All rights reserved.