cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search by Aspect across multiple Types

srowsell
Champ in-the-making
Champ in-the-making
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?
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

this may be in the wrong sub-forum - you are talking about an advanced search issue / question (no question actually posted, but I assume you want to know how you can search for aspects in advanced search), which either affects advanced search UI in Explorer (unlikely) or Share.
For Share, please take a look at <a href="https://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/share-aspects-and...">this thread about aspect-based advanced search</a>.

Regards
Axel

srowsell
Champ in-the-making
Champ in-the-making
Thanks, your answer in that other thread answers my question definitively.

Steve