Searching/Filtering does not use product description
See original GitHub issueWhat I’m trying to achieve
When searching or filtering products with the API, the description of the product does not seem to be used. More accurately, the descriptionJson does not seem to be used.
Steps to reproduce the problem
- Create a new product with some description
- Search for product based on unique words in description
What I expected to happen
Product should be returned in results. Looking at the postgres search backend, it appears the matching is being done against description
rather than descriptionJson
. https://github.com/mirumee/saleor/blob/b38ad825a19c7ebec1f85a6944b1ca4d716e9e31/saleor/search/backends/postgresql_storefront.py#L19
Additionally, the search should take into consideration attributes and category/collection names. For example, searching for “silver” should return products with “silver” in their attribute values. Searching for “bed sheets” should return products under category/collection “bed sheets” even if the product name does not include “bed sheets”.
System information Operating system: Windows x64
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
the doc here might be outdated then : https://docs.saleor.io/docs/developer/products#filtering
search: String: search by name or part of the description.
Ok, it looks like the product description field is included in the product search when I test it from the demo site Dashboard so I’m not sure why this issue is still open.