Skip to content

Instantly share code, notes, and snippets.

@munim
Created October 26, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save munim/e03a3f418dbc29cc912c1fc5c4eaeb87 to your computer and use it in GitHub Desktop.
Save munim/e03a3f418dbc29cc912c1fc5c4eaeb87 to your computer and use it in GitHub Desktop.
AEM CQ5 Search for property exists

Search for property exists in AEM CQ5 JCR

If you want find out that a property exists in JCR, then use the query debug tool with the following query

type=nt:unstructured
path=/content/bt/business
property=formname
property.operation=exists
p.hits=full
p.limit=-1
  • type - Node type that you want to perform your search on.
  • path - Path you want to perform the search.
  • property - The property that you want to test if it exits.
  • property.operation - The operation you want to perform for the test. The available operations are equals, unequals, like, not, exists.
  • p.hits - Provides all the properties of the matched nodes.
  • p.limit - Limit your results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment