Answer the question
In order to leave comments, you need to log in
How to get data by slug in elasticSearch?
Hello.
I understand with ElasticSearch and fasten it to the store on Django, as filtering by properties and search.
The question is, the usual structure of the store: category-products.
I need to make a selection regarding the desired category. The category has a pk and a slug.
I set up the categories field in the index as the category id for this product (I dropped the category id through prepare_categories)
It works like this: /catalog/odezhda/?q=56
Is it possible to somehow do without q=56? that is, is it possible to pass a category slug, and inside already make a selection?
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question