AnsweredAssumed Answered

search on custom aspect  query

Question asked by cookie on Sep 20, 2010
hi
I added a new aspect Type in my  alfresco and i can access this type in alfresco . now I want to write a query and search on this new aspects but I cant view the result I copy my code for you please help me
<aspect name="custom:CustomerDetails">
         <title>Customer Details</title>
         <properties>
            <property name="custom:CustomerName">
               <title>Customer Name</title>
               <type>d:text</type>
               <protected>false</protected>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
          <index enabled="true">
             <atomic>false</atomic>
             <stored>false</stored>
             <tokenised>true</tokenised>
          </index>
               <constraints>
                 <constraint ref="custom:name_length"/>
               </constraints>
            </property>
</aspect>

 String luceneQuery =  "+ASPECT:\"{custom.CustomerDetails.model}CustomerName\""+" TEXT:\"test\"";

Outcomes