AnsweredAssumed Answered

Searchable associations

Question asked by grk on May 2, 2014
Latest reply on May 7, 2014 by jpotts
I have implemented my own custom model, and I have a question about associations.
I have searched and found that associations are not searchable by Lucene, for performance issues. Yet, consider the following scenario:
<ul><li>A list of contacts in a data list <li>A document that needs to be associated with one of those contacts</ul>

In order for the user to be able to search documents that have been received from that contact, the association needs to be searchable.
So far, I have added a d:text property, that holds the name of the contact, and it is filled when associated with a datalist object. Yet, this entails a variety of issues.

Synchronization is one such major problem. The association needs to be 2-way, so as for the datalist object to be able to notify all documents that are linked to it, that for example the name of the contact has changed. And this is just a way to bypass the problem for a particular datalist. What if for example, I want to associate documents with one another (like in the use of a case of documents)?

Is it more efficient to be implement this in a different way other than string property and a rule for update?
Can someone guide me for an Alfresco SDK implementation of this scenario?

Outcomes