cancel
Showing results for 
Search instead for 
Did you mean: 

Search on an 'attachment' return parent content

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i make an attachment aspect, like this :

    <aspect name="project:attachments">
     <title>Attachment</title>
     <description>Content attachement</description>
         <associations>
            <child-association name="project:attachment">
               <source>
                   <mandatory>false</mandatory>
                   <many>false</many>
               </source>
               <target>
                  <class>cm:content</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
               <duplicate>false</duplicate>              
            </child-association>
         </associations>                       
    </aspect>

All is working well, except with search…
When i do search, i have child content in results.

I don't want to have child (attachment) in search, but only parent.
Is there a way to configure it ?

Thx in advance.

Best regards.
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

I assume you mean that PATH searches find all the children. PATH includes all child relationships regardless of association type. There is no easy way to work aorund this at the moment.

Andy