cancel
Showing results for 
Search instead for 
Did you mean: 

Search against properties

tavolate
Champ in-the-making
Champ in-the-making
Hi to all,
   I have created a C# application that uploads documents using the alfresco's webservices.
Creating the node, I add some additional properties, for example (document description..): 

   properties[0].name = Constants.PROP_NAME;
   properties[0].value = name;
   properties[1].name = "{http://www.alfresco.org/model/content/1.0}tipoDocumento";
   properties[1].value = "fattura";
   I just want to know if the search function of the web application does a search also in those custom properties. It seems to me that the search now uses only the contents and the default properties.

   If it is possible to search including the custom properties, how do I implement it?

Thanks, aGO!
3 REPLIES 3

tavolate
Champ in-the-making
Champ in-the-making
Thank you for your response, but I don't know how to use this tag:


<config evaluator="string-compare" condition="Advanced Search">
   <advanced-search>
      <content-types>
         <type name="my:sop" />
      </content-types>
      <custom-properties>
         <meta-data type="my:sop" property="my:authorisedBy" />
         <meta-data aspect="my:imageClassification" property="my:resolution" />
      </custom-properties>
   </advanced-search>
</config>

For exemple, in my situation (with my properties), which is the type and the property of this tag?


<meta-data aspect="my:imageClassification" property="my:resolution" />

aGO!

gavinc
Champ in-the-making
Champ in-the-making
For your property it should be:


<meta-data type="content" property="tipoDocumento" />