AnsweredAssumed Answered

Customized Advanced Search by aspects not returning results

Question asked by yuhuayang on Aug 29, 2013
Latest reply on Aug 31, 2013 by mitpatoliya

I created a custom model and several aspects (not properties). I then attached this aspect to a document and input some data for each aspect.

I followed the guides here: and and I have successfully added a custom Advanced Search form to search by aspects. However, the problem is that the search returns nothing! Why is this? I can find the documents using the solr/lucene search syntax but it is really user-unfriendly and I would like my users to use the search forms rather than esoteric aspect:name:query formats.

Here is the snippet added to share-config-custom.xml file:

<config evaluator="string-compare" condition="AdvancedSearch">
         <!– Forms for the advanced search type list –>
            <form label="HR Documents" description="Hr Documents">hr:docs</form>

   <config evaluator="model-type" condition="hr:docs">
         <!– Search form –>
         <form id="search">
               <show id="hr:name" force="true"/>
               <show id="hr:id" force="true"/>
               <show id="hr:formType" force="true"/>
               <show id="hr:dateOfDoc" force="true"/>

and here is the code for the model.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<model name="hr:hrModel" xmlns="">
    <description>HR Metadata</description>
        <import uri="" prefix="d"/>
        <import uri="" prefix="cm"/>
        <namespace uri="" prefix="hr"/>

        <type name="hr:docs">
                <title>HR Documents</title>

        <aspect name="hr:metadata">
            <title>HR Metadata</title>
                <property name="hr:name">
                <property name="hr:id">
                <property name="hr:formType">
                    <title>Form Type</title>
                <property name="hr:dateOfDoc">
                    <title>Date of Document</title>

any help is appreciated