public interface QueryCustomization<T>
Modifier and Type | Method and Description |
---|---|
T |
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)
|
default T |
filteredBy(org.apache.lucene.search.Filter filter)
Deprecated.
Lucene
Filter s have been deprecated and will be removed in a future version.
Please use Queries instead of Filter s
and use filteredBy(Query) instead of this method. |
T |
filteredBy(org.apache.lucene.search.Query filter)
Filter the query results with the given Query instance
|
T |
withConstantScore()
All results matching the query have a constant score equals to the boost
FIXME is that true?
|
T boostedTo(float boost)
boost
- the value to use as boostT withConstantScore()
T filteredBy(org.apache.lucene.search.Query filter)
filter
- the Query to use as a filter@Deprecated default T filteredBy(org.apache.lucene.search.Filter filter)
Filter
s have been deprecated and will be removed in a future version.
Please use Queries
instead of Filter
s
and use filteredBy(Query)
instead of this method.filter
- the Query to use as a filterCopyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.