@Immutable public class FieldExistsQuery extends ConstantScoreWeightQuery
ConstantScoreWeightQuery.ConstantWeight, ConstantScoreWeightQuery.ConstantWeightScorer
Modifier | Constructor and Description |
---|---|
protected |
FieldExistsQuery(String field) |
Modifier and Type | Method and Description |
---|---|
protected 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.Query |
clone() |
String |
toString(String field) |
createWeight, field
protected FieldExistsQuery(String field)
public String toString(String field)
toString
in class org.apache.lucene.search.Query
protected boolean areValid(org.apache.lucene.index.IndexableField... fields)
ConstantScoreWeightQuery
areValid
in class ConstantScoreWeightQuery
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.public org.apache.lucene.search.Query clone()
clone
in class org.apache.lucene.search.Query
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.