Make metadata from model properties searchable

cancel
Showing results for 
Search instead for 
Did you mean: 
nikolav
Member II

Make metadata from model properties searchable

Hello,

 I`ve tried to access the search related .JAR file located at 

  • tomcat/webapps/alfresco/WEB-INF/lib/alfresco-remote-api-5.2.f.jar

But when I unzip the jar file and open this folder (search) I don`t have anything in it.It should contain search related XML files that I`m supposed to edit in order to add some properties from my created models to the search. 

  • alfresco/templates/webscripts/org/alfresco/slingshot/search/

What else can I do in order to add properties to the search? Could it be the case that the .JAR files that I`m looking for are located in some other JAR?

I`ve been following this guide: https://bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-...

I`d appreciate if you gave me some tips on how to handle the situation I have here.Searching model's custom properties is one of the most important things to me and one of the main reasons I`ve decided to use Alfresco DMS in the first place.

Thanks in advance for help,

Nikola Vukovic

1 Reply
kaynezhang
Advanced

Re: Make metadata from model properties searchable


1. If you want your custom property to be searchable.you need to enable the property to be used for searching in your custom model definition like following,you should set index enable="true" and set tokenised to true or both

<property name="property name">
<title>xxxx</title>
<description>XXX</description>
<type>d:int</type>
<mandatory>false</mandatory>
<index enabled="true">
<atomic>true</atomic>
<stored>true</stored>

<tokenised>true</tokenised>
</index>
</property>
2. If you want your custom properties to be searchable in share live seach,please refer to https://bluefishgroup.com/insights/ecm/adding-metadata-fields-to-simple-search-and-live-search-with-...
3. If you want your custom properties to be searchable in advanced search ,please refer to http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#configuri....