cancel
Showing results for 
Search instead for 
Did you mean: 

simple search on custom properties don't give any result

gilles
Champ in-the-making
Champ in-the-making
Hello,
I'm struggling with this simple search on custom properties, on a 2.1.0 (482).
I can't find anything but the text in the name field or in the content.
No match for the text in the titles, description or any custom properties…!!
I added the
<simple-search-additional-attributes>
               <qname>{http://www.alfresco.org/model/content/1.0}title</qname>
               <qname>{http://www.alfresco.org/model/content/1.0}description</qname>
               <qname>{http://ec.europa.eu/eve/model/1.0}project-relation</qname>
               <qname>{http://ec.europa.eu/eve/model/1.0}project-subject</qname>
            </simple-search-additional-attributes>

but I cant understand how the search can work without setting the
<index enabled="true">
                 <atomic>true</atomic>
                 <stored>false</stored>
                 <tokenised>true</tokenised>
          </index>
in the model. (?!)

Could you tell me in which version the feature is added/fixed.

Thanks.
Gilles
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
Did you add it inside a <client> element? So the config file looks something like this:

<alfresco-config>
   <config>
      <client>
         <simple-search-additional-attributes>
            <qname>{http://www.alfresco.org/model/content/1.0}description</qname>
            <qname>{http://www.alfresco.org/model/content/1.0}title</qname>
         </simple-search-additional-attributes>
      </client>
   </config>
</alfresco-config>

There was a bug in 2.1 where it would not find folders based on the custom attributes, but files were working ok - the bug was fixed in 2.1E.

Thanks,

Kevin

gilles
Champ in-the-making
Champ in-the-making
Thank you for answering Kevin.
Do you mean that the bug is still in the 2.1Community?

BTW, do you know when the next stable Community release will be available? (2.2 or 2.9)

Gilles

kevinr
Star Contributor
Star Contributor
Yes - the code merge should happen in the next few days. I'm not sure exactly - i think December but can't be sure.

Thanks,

Kevin