1. I have documents that refer to property values from multiple custom aspects. I would like to know if I can do a CMIS type search on different properties using AND or OR criteria similar to in a lucene query.
2. With lucene search, I only need to specify the various property and its values to search for , and its able to return document matches successfully, but with CMIS do I have to specify the aspect names explicitly within my queries and do a join between them. Can I do a generic CMIS query search that will be able to search for documents with matching property values across multiple aspects
Example CMIS query that I would like to achieve
I have OrderAspect - has properties orderId, ordername, orderType
I have CustomerAspect - has customer name, customer state, customer type, customer id
I have a DiscountAspect - has discount type , discount percentage (can be 5 percent or 10 percent)
I want to have a CMIS query that gets all documents that have aspect property values where orderType is 'Boxes, have customerName as 'Peter' and have been given discount percentage of '5 percentage'