What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
hello together, how can i modify CatalogSearchQuery to prevent finding certain product_abstract ids
Comments
-
There is no such method.
But why do you push blacklisted products to the search? If the product should not be shown in the search it shouldn't be pushed as it could have influence of the ranking.you could filter this on Yves/Glue side, but this would have the side effect that a search page of 10 results could show only 9, because one is blacklisted. So either fetch more than shown if you would like to implement that in Yves/Glue, and take care of the offset or just don't push the blacklisted products into the search.
If you want to filter it out during search time (I assume elastic search is used) have a look onto https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-bool-query.html with the must_not operator.0 -
thanks, we have attributes on product_concretes in several variants, and the abstracts should only shown if all facets filter exact matches, currently showed if one of the filters match. i build a subsearchrequest and get now the abstract ids that not matches, i will try must_not operator
0 -
I suggest dumping/debugging the search query that is send to elasticsearch.
If I remember correctly inside the bool query there is a "should" operator (OR), this needs to be changed to "must" (AND).Sorry we don't use elasticsearch in our project, so I can't test it at the moment.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random