AnsweredAssumed Answered

Can't search custom fields in community 4.2

Question asked by entropicsinkhole on Jul 15, 2014
Latest reply on Jul 15, 2014 by entropicsinkhole
Alfresco Community - v5.0a

We've been able to successfully create new fields for a file's Properties – they all appear when you look at a document's Properties. But we are unable to search for the values in these fields. We've scoured the Internet and have tried every thing we can find, but all the documentation out there is outdated and/or wrong for our version or maybe I'm just not understanding it (ie. not a programmer).

We'd like the search to all these custom property fields at once.

Any suggestions would be appreciated! 

——————————————————————————–
Below are the files I configured


aspects-mapping.properties:

ADM-Admit=P:cm:taggable
ADM-Admit=P:mystuff:documentClassification
ADM-Admit.ClientID=mystuff:type


DLF-Attribute-mapping:

ADM-Admit=D:mystuff:mystuff
ADM-Admit.ClientID=mystuff:clientid
ADM-Admit.LastName=mystuff:patientlastname
ADM-Admit.FirstName=mystuff:patientgivennames
ADM-Admit.FormType=mystuff:formtype
ADM-Admit.EventName=mystuff:eventname

mystuffModel.xml (our custom model)

   <types>
  
      <!– Definition of new Content Type: Standard Operating Procedure –>
      <type name="mystuff:mystuff">
         <title>mystuff Document Procedure</title>
         <parent>cm:content</parent>
         <properties>
            <property name="mystuff:invoiceDate">
               <type>d:text</type>
            </property>
            <property name="mystuff:partNumber">
               <type>d:text</type>
            </property>
         <property name="mystuff:invoiceTotal">
               <type>d:text</type>
            </property>
            <property name="mystuff:state">
               <type>d:text</type>
            </property>
            <property name="mystuff:city">
               <type>d:text</type>
            </property>
          <property name="mystuff:clientid">
            <title>Patient Client ID</title>
               <type>d:text</type>
            </property>
          <property name="mystuff:patientlastname">
            <title>Patient Last Name</title>
               <type>d:text</type>
            </property>
          <property name="mystuff:patientgivennames">
            <title>Patient Given Names</title>
               <type>d:text</type>
            </property>
         <property name="mystuff:formtype">
            <title>Form Type</title>
               <type>d:text</type>
            </property>
         <property name="mystuff:eventname">
            <title>Event Name</title>
               <type>d:text</type>
            </property>
       </properties>
      </type>
     
    </types>
   
    <aspects>
     
      <!– Definition of new Content Aspect: Image Classification –>
      <aspect name="mystuff:documentClassification">
         <title>mystuff Document Classfication</title>
         <properties>
            <property name="mystuff:size">
               <type>d:int</type>
            </property>
            <property name="mystuff:type">
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
     
   </aspects>
  


Outcomes