QueryBuilder API combining multiple types for a query
Hello,
I am attempting to use the querybuilder API to search for two different 'types' in querybuilder. I have tried putting each type into a group like below - it isn't working
map.put("path", paths); map.put("group.p.and", "true"); map.put("group.1_type", "nt:unstructured"); map.put("group.2_type", "cq:Page"); map.put("group.1_fulltext", Keyword); map.put("group.1_fulltext.relPath", "jcr:content"); map.put("group.2_relativedaterange.property","nameofcomponentproperty"); map.put("group.2_relativedaterange.lowerBound","-1d"); // -1d is anything equal to or greater than todays date map.put("group.2_relativedaterange.upperBound",""); map.put("orderby", "@offerdatetime"); // Basically, what I am attempting to do is search for the nt:unstructured node where my desired results are inside of a component which can be used more than once on a page, each listing of the component is posting a different date result which I am using the daterange properties to query through the results. In the code example above I have removed the daterange variables to explain my problem better. The daterange is interchangeable. I have also been tasked with using a fulltext search to query through the jcr:content of the text where each one of the pages where the previously mentioned multi-used component is located. This search will take the keyword and return each event where the fulltext query is matched. I am having trouble combining the queries to work together. I have gotten each instance to work separately but have problems when attempting to use the type cq:Page and nt:unstructured. Thanks in advance for any help.