public class ConnectedAllContext extends Object implements AllContext
| Constructor and Description |
|---|
ConnectedAllContext() |
| Modifier and Type | Method and Description |
|---|---|
AllContext |
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)
|
org.apache.lucene.search.Query |
createQuery()
Return the lucene query representing the operation
|
AllContext |
except(org.apache.lucene.search.Query... queriesMatchingExcludedDocuments)
Exclude the documents matching these queries
|
AllContext |
filteredBy(org.apache.lucene.search.Filter filter)
Filter the query results with the Filter instance
|
AllContext |
withConstantScore()
All results matching the query have a constant score equals to the boost
FIXME is that true?
|
public org.apache.lucene.search.Query createQuery()
TerminationcreateQuery in interface Termination<AllContext>public AllContext except(org.apache.lucene.search.Query... queriesMatchingExcludedDocuments)
AllContextexcept in interface AllContextqueriesMatchingExcludedDocuments - the queries to use for excluding documentsthis for method chainingpublic AllContext boostedTo(float boost)
QueryCustomizationboostedTo in interface QueryCustomization<AllContext>boost - the value to use as boostpublic AllContext withConstantScore()
QueryCustomizationwithConstantScore in interface QueryCustomization<AllContext>public AllContext filteredBy(org.apache.lucene.search.Filter filter)
QueryCustomizationfilteredBy in interface QueryCustomization<AllContext>filter - the filter to useCopyright © 2006–2016 Hibernate. All rights reserved.