AnsweredAssumed Answered

Advanced Search by Aspect across multiple Types

Question asked by srowsell on Apr 19, 2013
Latest reply on Apr 22, 2013 by srowsell
Long time listener, first time caller…

I'm learning this Alfresco product, and first heard of it about a month ago.  Now I'm trying to develop for it.  I've developed a working custom model, which defines one custom Type (with several properties).  Eventually this model will contain several Types, and I'm thinking of changing things so each of these Types will have one Aspect, which will probably just define one property.

Now here's the thing:  I want to be able to search for any document – no matter what Type – within the repository which has a certain value for that property which is defined by the Aspect.

For example:  Let's say that I have two types of documents for which I've defined custom Types, and we'll call those Statements and Taxes.  Each Type has several properties appropriate for them.  But I also want to define an Aspect called "Account Number", and I want to attach that to both Statements and Taxes.  So if I search for a certain value for "Account Number" I will return documents of both Types.

I've searched for someone who's already answered this question, and come up empty.  Will I do better by posting about it?