Hi, I'm trying to achieve a filtering component that leverages the Querybuilder API and filters pages by tags. It should be possible to filter by multiple tags and taggroups at the same time:
Group 1 - Tag A or - Tag B or - Tag C
--- AND ---
Group B - Tag D or - Tag E or - Tag F
My trouble is that I can filter by A, B, C and D but as soon as I add a second tag for the second group I get an exception... So basically I want to see all records that are tagged with A, B, or C AND D or C. This does not work for some reason...
24.09.2014 11:34:23.550 *ERROR* [0:0:0:0:0:0:0:1  GET /libs/cq/search/content/querydebug.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException java.lang.IllegalStateException: Property index is used even when no index is available for filter Filter(query=select [jcr:path], [jcr:score], * from [dam:Asset] as a where [jcr:content/metadata/cq:tags] in('stockphotography:business/business_concepts', 'stockphotography:business/business_backgrounds') and [jcr:content/metadata/cq:tags] in('properties:style/color', 'properties:style/monochrome/grayscale') /* xpath: //element(*, dam:Asset)[((jcr:content/metadata/@cq:tags = 'stockphotography:business/business_concepts' or jcr:content/metadata/@cq:tags = 'stockphotography:business/business_backgrounds')) and ((jcr:content/metadata/@cq:tags = 'properties:style/color' or jcr:content/metadata/@cq:tags = 'properties:style/monochrome/grayscale'))] */, path=*, property=[jcr:content/metadata/cq:tags=in()])
I noticed that this also does not work for the Geometrixx example (/content/geometrixx/en/company/press.html). Is that a known bug?