cancel
Showing results for 
Search instead for 
Did you mean: 

All custom property doesn't search

mperk
Champ in-the-making
Champ in-the-making
I use alfresco 5.0.c
Make custom model like this:


<type name="kb:myType">

<mandatory-aspects>
     <aspect>kb:myAspect</aspect>
  </mandatory-aspects>
</type>

<aspect name="kb:myAspect">
<properties>
  <property name="kb:myProp">
     <type>d:text</type>
     <mandatory>false</mandatory>
     <index enabled="true">
          <atomic>true</atomic>
          <stored>false</stored>
          <tokenised>BOTH</tokenised>
     </index>
  </property>
</properties>
</aspect>



I can search cm:name, cm:titled. But my all properties doesn't search. solr4.log is clear. What is wrong?
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
There's nothing wrong with what you have posted.     Examples of the queries that you have attempted may help.

mperk
Champ in-the-making
Champ in-the-making
Hi Mrogers,

I've created a property of type d:text and attached it to several files. I'd like to have this field searched when a user uses the simple search bar. But it doesn't.

http://wiki.alfresco.com/wiki/Web_Client_Customisation_FAQ#Adding_Properties_to_Simple_Search
these instructions are old. I am using Alfresco Community 5.0.c İf so, What can I do

Thanks for your time.

douglascrp
World-Class Innovator
World-Class Innovator
Override the search.get.config.xml file and replace its content by:


<search>
   <default-query-template>%(ALL)</default-query-template>
</search>


It will search on all properties, OOTB and custom ones.

mperk
Champ in-the-making
Champ in-the-making
Hi,

Thanks for reply
I didn't find search.get.config.xml –> I find the config-search.get.desc.xml , search.get.desc.xml


<webscript>
  <shortname>Search Results List</shortname>
  <description>Search: Results List Component</description>
  <url>/components/search/search</url>
</webscript>


I put in the code your advice. But didn't work.

Also I found share-config.xml. This:


<config evaluator="string-compare" condition="Search">
      <search>
        
         <min-search-term-length>1</min-search-term-length>
        
         <max-search-results>250</max-search-results>
        
         <repository-search>always-options</repository-search>
      
         [ <default-query-template>%(ALL)</default-query-template> ]

      </search>
</config>


And I put in the code your advice. But didn't work.

Thanks for your time.

mperk
Champ in-the-making
Champ in-the-making
Anybody can help me?