From 0627f6a05222dfa6d9ee730e466da7528fd6977b Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Tue, 10 Oct 2023 11:06:10 +0200 Subject: [PATCH] Update doc with new way to add fields to search --- docs/add_custom_values.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/add_custom_values.md b/docs/add_custom_values.md index 6e433f16..1a4c3ff4 100644 --- a/docs/add_custom_values.md +++ b/docs/add_custom_values.md @@ -14,8 +14,7 @@ You will have the `item.short_description` variable available in your templates. ## Search on the custom value With only the decorator, you will not be able to search in the content of the new field. -You have to redeclare `monsieurbiz.search.request.query_filter.product_search.search_term_filter` -and `monsieurbiz.search.request.query_filter.product_instant_search.search_term_filter` services -to add the `short_description` fields. +You have to change parameters to define the fields to search for the search page and the instant search. -- [Add `short_description` in search term filter](../dist/src/Resources/config/services.yaml#L34) +- [Add `short_description` in `monsieurbiz.search.product.search.fields_to_search`](../dist/src/Resources/config/config.yaml#6) +- [Add `short_description` in `monsieurbiz.search.product.instant.fields_to_search`](../dist/src/Resources/config/config.yaml#13)