question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Searching/Filtering does not use product description

See original GitHub issue

What 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

  1. Create a new product with some description
  2. 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:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rmelissoncommented, Dec 4, 2020

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.

0reactions
simon-onlinecommented, Apr 13, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searching for products and filtering your product list
The way that your products are sorted or filtered in the Products area of the admin doesn't affect how your products are shown...
Read more >
Product Filtering - BigCommerce Support
Product Filtering (also known as faceted search) allows shoppers to refine product searches based on multiple attributes like price, color, size, ...
Read more >
Filter and refine search results - OCLC Support
Select Clear Filters to remove the filters currently applied to the search results. Filter search results. You can narrow the set of results ......
Read more >
What is a Search Filter? Definition & Examples - Dynamic Yield
An extension of faceted search, a search filter is a specific product attribute a visitor can use to refine the search results of...
Read more >
Excel 2016: Filtering Data - GCF Global
Use the Search feature to filter item descriptions that contain the word Sansei. After you do this, you should have six entries showing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found