PathPredicateEvaluator search for two paths | Adobe Higher Education
Skip to main content
Kreender
Level 2
January 24, 2018
Risolto

PathPredicateEvaluator search for two paths

  • January 24, 2018
  • 1 risposta
  • 1376 visualizzazioni

Hello

I have a really complex query using HashMap and the QueryBuilder, part of it has something like this:

        map.put("path", "/content");

        map.put("path.exact", "true"); // defaults to true

        map.put("path.flat", "true");

        map.put("path.self", "true");

I took that code from this page:
acs-aem-samples/SampleQueryBuilder.java at master · Adobe-Consulting-Services/acs-aem-samples · GitHub

this works as intended but I need my query to search for content in two possible paths, so it would be to search in two paths with an "OR" relationship. I haven't found any documentation on how to do that, any help will be appreciated.

Questo argomento è stato chiuso alle risposte.
Migliore risposta di rmahendra

Try this.

group.1_path=/content/x

group.2_path=/content/y

group.p.or=true

Query Builder API has more examples.

1 risposta

rmahendra
Adobe Employee
rmahendraAdobe EmployeeRisposta
Adobe Employee
January 25, 2018

Try this.

group.1_path=/content/x

group.2_path=/content/y

group.p.or=true

Query Builder API has more examples.