AnsweredAssumed Answered

Two advanced search forms for one type?

Question asked by deny7 on Mar 8, 2019
Latest reply on Mar 8, 2019 by roberto.gamiz

Is it possible to define two different advanced search forms for one type? Like this:

 

<config evaluator="string-compare" condition="AdvancedSearch">
<advanced-search>
<!-- Forms for the advanced search type list -->
<forms>
<form labelId="one form"
descriptionId="search.form.desc.cm_folder">ex:document</form>
<form labelId="two form"
descriptionId="search.form.desc.cm_folder">ex:document</form> 
</forms>
</advanced-search>
</config>

I know it doesnt sound very logic, but they will differ in number of field visible on form. I tried to define for one form custom type and give that type parent of ex:document, like this:

 

<type name="ex:establishment">
   <parent>ex:document</parent>
</type>

but this doesnt work, when I search, It gives me 0 results, It looks like the inherited properties doesnt get indexed for that type.

Outcomes