FieldExistsQuery instead. This query will be removed in 8.0 with CONFSRVDEV-23231@SearchPrimitive @Deprecated public class ExistsQuery extends Object implements SearchQuery
SearchQuery implementation which finds documents which contain a specific field.| Constructor and Description |
|---|
ExistsQuery(String fieldName,
boolean isNegate)
Deprecated.
Creates a
SearchQuery which finds documents that do not contain a specific field. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Deprecated.
|
String |
getFieldName()
Deprecated.
|
String |
getKey()
Deprecated.
|
List |
getParameters()
Deprecated.
List of parameters as
Strings or SearchQuerys. |
int |
hashCode()
Deprecated.
|
boolean |
isNegate()
Deprecated.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexpand, getBoost, getSubClausespublic static final String KEY
public ExistsQuery(String fieldName, boolean isNegate)
SearchQuery which finds documents that do not contain a specific field. Can be negated.fieldName - the name of the field which must exist on the found documents.isNegate - negates the query iff true. Negation will find documents that do not contain a specific field.public String getKey()
getKey in interface SearchQuerypublic List getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public String getFieldName()
public boolean isNegate()
Copyright © 2003–2022 Atlassian. All rights reserved.