shopware.composite_search.definition. The priority of the tag defines the order in the search order.
ApiServicewith the key of the entity in camelcase suffixed with
Service. E.g. The service key is
yourCustomSearchServicewhen requesting a service for
your_custom_search. Every entity definition gets automatically an instance in the injection container but can be overridden so there is no additional work needed.
entityNameis used as the same to change also existing types.
entityServiceis used for the typed search.
placeholderSnippetis a translation key that is shown when no search term is entered.
listingRouteis used to show a link to continue the search in the module specific listing view.
sw-search-bar-itemtemplate has to be altered as seen below, starting with the template:
sw_search_bar_item_cms_pageblock is used as it is the last block, but it is not important which shopware type is extended as long as the vue else-if structure is kept working.
sw-searchcomponents as well: