cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Search on Custom Property

richardgunderse
Champ in-the-making
Champ in-the-making
Hi

I'm strugging with Advanced search and would really appreciate any help.

I have defined some custom props on an aspect, and configured the Advanced search to allow me to search for values in my properties. So, I have the following:

This is how my property is defined:

            <property name="ix:SimpleSummary">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <index enabled="true">
                  <atomic>true</atomic>
                  <stored>true</stored>
                  <tokenised>true</tokenised>
               </index>                
            </property>

I have configured the UI so it looks like this

    <config evaluator="string-compare" condition="Advanced Search">
       <advanced-search>
          <custom-properties>
             <meta-data aspect="ix:docAspect" property="ix:SimpleSummary"/>
          </custom-properties>
       </advanced-search>
    </config>

I have a document in Alfresco with the following value for 'SimpleSummary'

    "E-Books:  Why They Matter for Distance Education"

Now, if I go to the advanced search screen and enter e.g. 'E-Books' (or even the entire value), no results are found.

Is anyone able to help me with this please?

Thanks
4 REPLIES 4

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

Where are you entering the search string? Are you typing it in the edit box that corresponds to your custom property?

Cheers,

–Alaaeldin

g_rathod
Star Contributor
Star Contributor
Hi Friend,

Your custom search code seems OK.
Since you need to search on Advance Search's Search box with option checked for following :
Show me results for : File names and contents (selected)
now click search

This may help you.

Here on my side I got that.

richardgunderse
Champ in-the-making
Champ in-the-making
Hi there

Thanks for the replies (sorry for the delay with mine).

I've tried the suggestions with no success I am afraid. I rebuilt the lucene indexes, and checked that the data is there. I even refreshed the aspect data, adding 'testtesttest' to a property called 'SimpleSummary'.
On the advanced search screen I enter 'testtesttest' into the SimpleSummary property edit box, and press search (making sure that 'File names and contents' is selected)
No results Smiley Sad
Really appreciate any more help you can give me. Are there any extra debug options I could try, to see why its not reading my changes?

Thanks again
Richard

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

You should also make sure that the user you are using to perform the search has read access to the content. You can login as admin to be sure you can read everything.

Cheers,

–Alaaeldin