There are 3 types. They all have 5 properties in common, then each of them have their own set of properties.
I have created a base type, with an aspect of the 5 common properties.
Then 3 different aspects to cover specific properties of the 3 types.
In the share-config-custom.xml, I do not know any means to accomplish different forms for each of these types.
<config evaluator="string-compare" condition="AdvancedSearch"> ...
...
<form labelId="search.form.label.my_custom_Type1" descriptionId="search.form.desc.my_custom_Type1">my_custom:Type1</form>
<form labelId="search.form.label.my_custom_Type1" descriptionId="search.form.desc.my_custom_Type1">my_custom:Type2</form>
...
</config>
In this I have given a form entry for each of the types.
Should I create separate search form for each of this type, to accomplish this?
I never have done this. I would like to confirm.
<config evaluator="model-type" condition="my_custom:Type1">
<forms>
<form> ... </form>
<form id="search"> ... </form>
</forms>
</config>
<config evaluator="model-type" condition="my_custom:Type2">
<forms>
<form> ... </form>
<form id="search"> ... </form>
</forms>
</config>