@Immutable public class FieldExistsQuery extends ConstantScoreWeightQuery
| 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, fieldprotected FieldExistsQuery(String field)
public String toString(String field)
toString in class org.apache.lucene.search.Queryprotected boolean areValid(org.apache.lucene.index.IndexableField... fields)
ConstantScoreWeightQueryareValid in class ConstantScoreWeightQueryfields - 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.