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)
|
Query |
createQuery()
Return the lucene query representing the operation
|
AllContext |
except(Query... queriesMatchingExcludedDocuments)
Exclude the documents matching these queries
|
AllContext |
filteredBy(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 Query createQuery()
Termination
createQuery
in interface Termination<AllContext>
public AllContext except(Query... queriesMatchingExcludedDocuments)
AllContext
except
in interface AllContext
queriesMatchingExcludedDocuments
- the queries to use for excluding documentsthis
for method chainingpublic AllContext boostedTo(float boost)
QueryCustomization
boostedTo
in interface QueryCustomization<AllContext>
boost
- the value to use as boostpublic AllContext withConstantScore()
QueryCustomization
withConstantScore
in interface QueryCustomization<AllContext>
public AllContext filteredBy(Filter filter)
QueryCustomization
filteredBy
in interface QueryCustomization<AllContext>
filter
- the filter to useCopyright © 2006-2017 Red Hat, Inc. All Rights Reserved