Class FieldExistsQuery
- java.lang.Object
-
- com.atlassian.confluence.search.v2.query.FieldExistsQuery
-
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
@SearchPrimitive public class FieldExistsQuery extends Object implements SearchQuery
A V2SearchQueryimplementation which finds documents which contain a specific field.- Since:
- 7.20
-
-
Constructor Summary
Constructors Constructor Description FieldExistsQuery(String fieldName)FieldExistsQuery(String fieldName, boolean isNegate)Creates aSearchQuerywhich finds documents that do not contain a specific field.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static FieldExistsQueryfieldNotExistsQuery(String fieldName)StringgetFieldName()StringgetKey()ListgetParameters()List of parameters asStrings orSearchQuerys.inthashCode()booleanisNegate()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
expand, getBoost, getSubClauses
-
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FieldExistsQuery
public FieldExistsQuery(String fieldName, boolean isNegate)
Creates aSearchQuerywhich finds documents that do not contain a specific field. Can be negated.- Parameters:
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.
-
FieldExistsQuery
public FieldExistsQuery(String fieldName)
-
-
Method Detail
-
fieldNotExistsQuery
public static FieldExistsQuery fieldNotExistsQuery(String fieldName)
-
getKey
public String getKey()
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
public List getParameters()
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
getFieldName
public String getFieldName()
-
isNegate
public boolean isNegate()
-
-