09-06-2017 01:44 AM
Hi to everyone.
We got the requirement to join properties from 2 different types, we tried to use CMIS, but it supports JOIN only for aspect and can't be used for 2 types. Maybe is there some ability to use SOLR for that needs, something like indexing 2 alfresco nodes as 1 Solr document?
Maybe, you can offer another way?
09-07-2017 02:39 PM
If those types are 100% orthogonal then there is no way to join them. But you are wrong - CMIS queries actually supports JOIN on types (at least I recently verified this for a query merging algorithm I wrote using cmis-alfresco query language). But the JOIN will not yield any results if a document does not have both types (one being a base / parent type of the other).
09-08-2017 02:20 AM
@Axel thank you for feedback.
Seems, we will need to write sql query to do what we need
09-08-2017 07:35 AM
Just use FTS query instead with an OR on the TYPE condition. No need to write SQL for this.
09-08-2017 07:53 AM
I don't think that FTS can help...
Let me explain more detailed, we have 2 types: offer and deal.
Properties of the offer:
Properties of deal
And we need to find something like:
!select * from offer as o join deal as d on o.dealId=deal.id where d.companyType="Bank"
It is a simple case above. We have much more fields and about 100000 deals, so speed is the key.
Explore our Alfresco products with the links below. Use labels to filter content by product module.