cancel
Showing results for 
Search instead for 
Did you mean: 

Content Type not in Advanced Search

jk3us
Champ in-the-making
Champ in-the-making
I've set up a content type and an aspect… almost everything is working correctly with them: I can set objects to be of the type and have the aspect, i can set all their properties correctly.  I'm now trying to set up search and am having a couple of problems:

1) I can't get the new type to appear in the "Content Type" drop down on the advanced search page.
2) I got some "Additional Options" to show up, but entering values there doesn't seem to have an effect on the search results.

From web-client-config-custom.xml:


   <config evaluator="string-compare" condition="Advanced Search">
        <advanced-search>
            <content-types>
                <type name="c4k:image" />
            </content-types>
            <custom-properties>
                <meta-data type="c4k:image" property="c4k:image_type" display-label-id="c4k_image_type" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:language" display-label-id="c4k_language" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:context" display-label-id="c4k_context" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:obj_location" display-label-id="c4k_obj_location" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:event_location" display-label-id="c4k_event_location" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:date" display-label-id="c4k_date" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:exp_date" display-label-id="c4k_exp_date" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:rights_restricted" display-label-id="c4k_rights_restricted" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:rights_description" display-label-id="c4k_rights_description" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:reading_level" display-label-id="c4k_reading_level" />
                <meta-data aspect="c4k:Cure4KidsMetadata" property="c4k:audience" display-label-id="c4k_audience" />
            </custom-properties>
        </advanced-search>
   </config>

Is there something else I need to add to get the new type to appear in the drop down?

Why does searching on the properties of that aspect not seem to change the search results?
2 REPLIES 2

dhalupa
Champ on-the-rise
Champ on-the-rise
A good start would be to change logging level to DEBUG on the following class org.alfresco.web.bean.search.SearchContext and inspect produced Lucene query.

Kind regards,

Denis

chandu7ee
Champ in-the-making
Champ in-the-making
I am also having same problem can anybody help me..! :cry:

changed log4j file with above text and restarted the tomcat server.