title: Java AEM Query Builder ||
body: <p>I am building a simple meta-data table that gets the data from a query.  I want to be able to query on two options for the 'type' variable.  the || is not working however; when I use this the page crashes.</p>
  
  <pre><code>Map&lt;String, String&gt; predicates = new HashMap&lt;String, String&gt;();
              predicates.put("path", searchPath);
              predicates.put("type", "cq:Page||dam:Asset");
              predicates.put("orderby", orderBy);
  
      QueryBuilder qb = resourceResolver.adaptTo(QueryBuilder.class);
      Session session = resourceResolver.adaptTo(Session.class);
  
      Query query = qb.createQuery(PredicateGroup.create(predicates), session);
      query.setHitsPerPage(0);
  </code></pre>