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 aSearchQuery
which finds documents that do not contain a specific field. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static FieldExistsQuery
fieldNotExistsQuery
(String fieldName) getKey()
List of parameters asString
s orSearchQuery
s.int
hashCode()
boolean
isNegate()
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 Details
-
KEY
- See Also:
-
-
Constructor Details
-
FieldExistsQuery
Creates aSearchQuery
which 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:
getKey
in interfaceSearchQuery
- Returns:
- the plugin key
-
getParameters
Description copied from interface:SearchQuery
List of parameters asString
s orSearchQuery
s.- Specified by:
getParameters
in interfaceSearchQuery
- Returns:
String
s orSearchQuery
s.
-
getFieldName
-
isNegate
public boolean isNegate() -
equals
-
hashCode
public int hashCode()
-