Class FieldExistsQuery
java.lang.Object
com.atlassian.confluence.search.v2.query.FieldExistsQuery
- All Implemented Interfaces:
Expandable<SearchQuery>,SearchQuery
A V2
SearchQuery implementation which finds documents which contain a specific field.- Since:
- 7.20
-
Field Summary
FieldsFields inherited from interface com.atlassian.confluence.search.v2.SearchQuery
DEFAULT_BOOST -
Constructor Summary
ConstructorsConstructorDescriptionFieldExistsQuery(String fieldName) FieldExistsQuery(String fieldName, boolean isNegate) Creates aSearchQuerywhich finds documents that do not contain a specific field. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FieldExistsQueryfieldNotExistsQuery(String fieldName) getKey()List of parameters asStrings orSearchQuerys.inthashCode()booleanisNegate()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.search.v2.SearchQuery
expand, getBoost, getSubClauses
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
FieldExistsQuery
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
-
-
Method Details
-
fieldNotExistsQuery
-
getKey
- Specified by:
getKeyin interfaceSearchQuery- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQueryList of parameters asStrings orSearchQuerys.- Specified by:
getParametersin interfaceSearchQuery- Returns:
Strings orSearchQuerys.
-
getFieldName
-
isNegate
public boolean isNegate() -
equals
-
hashCode
public int hashCode()
-