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 V2 SearchQuery implementation which finds documents which contain a specific field.
Since:
7.20
  • Field Details

  • Constructor Details

    • FieldExistsQuery

      public FieldExistsQuery(String fieldName, boolean isNegate)
      Creates a SearchQuery 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

      public FieldExistsQuery(String fieldName)
  • Method Details