AnsweredAssumed Answered

Lucene query on a (peer) association?

Question asked by bluearth on Dec 11, 2009
Hi,

First, apologize for the repost. This was posted on alfresco general before i figured here is where it should go.

With the following model (below) how do I craft lucene query to search for contents with certain "rws:dispatchTo" value?

I tried using "@rws:\\dispatchTo:\"some_existing_user\"" but it returns no result (while in fact i got bunch of documents that complies)

Thanks in advance!

Here's the model…

    <aspects>

       <aspect name="rws:defaultAspect">
         <properties>
            …..bunch of properties goes here…
         </properties> 
         <associations>
            <association name="rws:dispatchTo">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>false</many>
               </target>
            </association>
         </associations>
      </aspect>

   </aspects>

EDIT : replaces 'relationship' with 'association' on subject

Outcomes