java.lang.Object | ||
↳ | org.apache.lucene.search.Query | |
↳ | org.apache.lucene.search.ConstantScoreQuery |
A query that wraps a filter and simply returns a constant score equal to the query boost for every document in the filter.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ConstantScoreQuery.ConstantScorer | |||||||||||
ConstantScoreQuery.ConstantWeight |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
filter |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Expert: Constructs an appropriate Weight implementation for this query.
| |||||||||||
Returns true if
o is equal to this. | |||||||||||
Expert: adds all terms occurring in this query to the terms set.
| |||||||||||
Returns the encapsulated filter
| |||||||||||
Returns a hash code value for this object.
| |||||||||||
Expert: called to re-write queries into primitive queries.
| |||||||||||
Prints a user-readable version of this query.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.Query
| |||||||||||
From class
java.lang.Object
|
Expert: Constructs an appropriate Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
Expert: adds all terms occurring in this query to the terms set. Only
works if this query is in its rewritten
form.
Returns a hash code value for this object.
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
IOException |
---|