In the product cockpit of the backoffice there is a search feature to which you can add some filters , I would like to add some of my own attributes to the filters.
In the my custom backoffice extension in the config.xml i added
<context type="MyProduct" component="pcmbackoffice-fulltext-search" module="pcmbackoffice">
<ful:fulltext-search xmlns:ful="http://www.hybris.com/cockpitng/config/fulltextsearch" xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<ful:field-list>
<ful:field name="MyProduct.Name"/>
<ful:field name="MyProduct.Type"/>
<ful:field name="MyProduct.isActive"/>
</ful:field-list>
<ful:preferred-search-strategy>solr</ful:preferred-search-strategy>
<ful:operator>OR</ful:operator>
</ful:fulltext-search>
</context>
i then ran a clean all and an update from the hac , but the changes are not shown. in the console i see
[DefaultFieldQueryFieldRenderer] Unable to determine field configuration for
field 'MyProduct.Name' in 'pcmbackoffice-collectionBrowser-
fulltextsearch'
I have also tried the config below.
<context type="MyProduct" component="pcmbackoffice-fulltext-search" module="pcmbackoffice">
<ful:fulltext-search xmlns:ful="http://www.hybris.com/cockpitng/config/fulltextsearch" xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<ful:field-list>
<ful:field name="MyProduct.Name"/>
<ful:field name="MyProduct.Type"/>
<ful:field name="MyProduct.isActive"/>
</ful:field-list>
<ful:preferred-search-strategy>solr</ful:preferred-search-strategy>
<ful:operator>OR</ful:operator>
</ful:fulltext-search>
</context>
which does not change the default settings (product).
any help on how to configure the search and filters in the product cockpit would be great
You can follow step which is described in document. You need to configure your variant for backoffice search solr indexing at System > Search and Navigation > Indexed Types.