You are currently viewing the article on an older Shopware version!
To configure how the search function behaves on your site, navigate to Settings > shop > search.
In this section, you can configure how the search function handles a search request that's made out of multiple words and when the search function is triggered.
If you choose and (1) the search function will only show results containing all terms, e.g. Searching for beach ball will only show results that contain beach and ball.
The or (2) function will hand out each result that matches one of the terms. e.g. Searching for beach ball will show results that contain beach or ball.
The search is triggered once the minimum search term length (3) is reached.
Please note that the minimum search term length is three, everything below that will be ignored by the system.
The searchable content is separated into multiple sections, so that you can individually rank the section.
To change the settings of a section, double-click in the line of choice.
Reset to default (1): This button will reset all default searchable content to default.
Show example (2): Opens a modal with search raking examples.
Rebuild search index (3): Takes you to the live search, where you can rebuild the search index.
General (4): Here you can view and configure the default searchable content.
Custom fields (5): Here you can view and configure the custom searchable content.
Content (1): Lets you define how a specific content is to be handled by the search function.
Searchable (2): Toggles whether it is considered in the search.
Ranking score (3): Defines how much weight is put behind the content. The higher the value, the more weight it brings.
Split search terms (4): Search terms with certain special characters like - or / and so on are split. E.g. the product number PT-64/515. If activated, it would search for PT, 64 and 515. If inactive, it does not split it, then it will search for PT-64/515.
"..." Menu (5) - This menu will let you reset a specific content back to the default value.
Add custom content (1): Lets you add custom searchable content
Content (2): Lets you define how custom searchable content is to be handled by the search function.
Searchable (3): Toggles whether it is considered in the search.
Ranking score (4): Defines how much weight is put behind the content. The higher the value, the more weight it brings.
Split search terms (5): Search terms with certain special characters like - or / and so on are split. E.g. the product number PT-64/515. If activated, it would search for PT, 64 and 515. If inactive, it does not split it, then it will search for PT-64/515.
"..." Menu (6) - This menu will let you reset a specific content back to the default value or remove it entirely.
If you click add custom content, a blank line will be added, you need to double-click it in order to edit it. Now, you can select a custom text field from the drop-down menu (1). Confirm your settings with the blue check mark (2).
Please bear in mind that you can only use custom fields of the type number or text field.
In this section, you can add all keywords that should be excluded from the search.
Search bar (1): This bar will let you search all excluded terms.
Exclude search term (2): Click here to add a new term to the exclusion list.
Empty bar (3): This only shows up after clicking on exclude search term, enter the term you wish to exclude and confirm by using the blue check mark (4).
"..." Menu (5): This hides the delete function. Use it to remove terms from your exclusion list.
Excluded terms (6): All excluded terms are listed below, these can span over multiple pages (7).
Drop down menu (8): You can increase the number of shown excluded terms on the page by selecting this number from here.
Click rebuild search index to update your search index, next to the button you can see when it was last updated.
If the search index is being rebuilt, you can see the progress.
Please note that it's mandatory to keep the window open while the index is being rebuilt.
This section will let you preview the search results on a sales channel base without having to visit the frontend of your web store.
Select a sales channel (1): Select the sales channel in which you want to test your search.
Search (2): Enter the term you wish to test.
Show example (3): Opens a modal with search ranking examples.
The preview of your search is shown.
Each item that matched your search term is listed with the ranking it achieved.
Advanced Search is part of the Commercial extension and is available to you as an extension from the Shopware Evolve plan.
SaaS customers can already use Advanced Search without any further installation.
Advanced Search offers you simple configuration options and high performance due to the Elasticsearch basis.
Since Advanced Search is based on Elasticsearch, an Elasticsearch instance is a prerequisite for operation. You can learn how to integrate Elasticsearch into Shopware 6 here.
Additionally, the Commercial extension must be installed & activated. More information about the Commercial extension can be found here.
Advanced Search can be configured per sales channel (1) and can be enabled/disabled via Enable Advanced Search (2).
In the Hit Count section, you define the number of displayed elements for the preview search (1) and the results page (2).
In this section, you will be shown a preview of the search results based on a sales channel without having to go to the storefront.
Sales Channel (1): Select the sales channel where you want to test your search.
Search (2): Enter the term you want to test.
Type (3): Select the type (Product, Category or Manufacturer) of the search term.
Show example (4): Opens a modal with examples of search queries.
The search by context offers you a "magic" search option in the storefront that allows shoppers to search for products by simply specifying the context, their search intent, in natural language. It is therefore the first AI Copilot feature targeting the shopper side.
The "AI Copilot" tab will only be visible if the Commercial extension is active, and you have booked at least the Shopware Rise plan.
Note the selected language so that your changes are also visible in the associated sales channel with this language.
You can configure the search by context separately for each sales channel. To do this, select the desired sales channel in the drop-down menu.
Please note: There is a limit to the number of keywords that can be entered in the search by context description. There is a limit of 100 characters.
This is where you activate and deactivate the search by context. This function is deactivated by default.
This description affects all languages within a sales channel.
Enter here in short keywords what is available in your store. These keywords are used by the algorithm to optimize the search results in your sales channel. This is a mandatory field and must be filled in to enable saving.
The examples can be configured separately for each language.
Here you can preconfigure three examples that should also be suggested to your customers.
Here, we use an example to show you what the storefront would look like with active search by context.
The AI Copilot symbol appears next to the search field of your store. If you click on the star symbol, you will be taken to the search wizard.
We have reached the search field and can now search for "vacation in Vietnam", for example. When we have finished our entry, we confirm this with the arrow to the right.
After a short time, the search by context has found a suitable product in our shop on the subject of "vacation in Vietnam" and displays it in the storefront.
As the product descriptions and images for the products are missing in our example, the AI can only work with the existing product names and descriptions in this case, which makes the search less accurate. If you have stored all the information such as images, descriptions etc. for the products in your sales channel, the search by context can deliver correspondingly more accurate results.