@Immutable public abstract class ConstantScoreWeightQuery extends org.apache.lucene.search.Query
| Modifier and Type | Class and Description |
|---|---|
protected class |
ConstantScoreWeightQuery.ConstantWeight |
protected class |
ConstantScoreWeightQuery.ConstantWeightScorer |
| Modifier | Constructor and Description |
|---|---|
protected |
ConstantScoreWeightQuery(String field) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
areValid(org.apache.lucene.index.IndexableField... fields)
Checks if the given fields are valid for the document matched by a particular query or not.
|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores) |
protected String |
field() |
protected ConstantScoreWeightQuery(String field)
protected String field()
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.IndexSearcher searcher,
boolean needsScores)
throws IOException
createWeight in class org.apache.lucene.search.QueryIOExceptionprotected abstract boolean areValid(org.apache.lucene.index.IndexableField... fields)
fields - a IndexableField array instance which was loaded by the scorer for the current field; never null
and never empty.true if the array of fields is valid and document should be returned by the query or false if not.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.