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, how can I configure the brand facet filter on the search result page? i would like all brands
Hello, how can I configure the brand facet filter on the search result page? i would like all brands to be shown and not only 10. I found this documentation https://documentation.spryker.com/docs/t-working-filter-facets but there is no FacetConfigTransferBuilderPlugin for brands, so that i could just set the size in the AggregationParams to 0
Comments
-
Elasticsearch by default will only return 10 items from an aggregation. You have to explicitly provide a value that works for your use-case
0 -
See the
terms
aggregation documentation for help:0 -
I found that documentation as well, when I searched in the direction of Elasticsearch, but my problem is that I don't know where to set the size
0 -
~Unfortunately it doesn't work with Spryker out of the box (at least I'm not aware of that).~
We implemented a set of search-config expander decorators that add the size property to all facet aggregations0 -
E.g.
FacetConfigTransfer::setAggregationParams(['size' => 100]);
0 -
That's what I meant with the FacetConfigTransferBuilderPlugins in the original question and what I found in the spryker documentation that I linked. But there is no such Plugin for the brands and just creating one and adding it in the CatalogDependencyProvider doesn't work. So something seems to be different for the brands...
0 -
Sorry for having trouble understanding you actual question 😂 ... I got a bit lost
Brands in your case is very likely derived from the product attributes so it is a facet that was configured in the database. There should be a config builder for that as well that you can extend. I'll try to find something for you
0 -
You could either hook in where things get prepared for storage or modify on the fly when the config is being built
0 -
We opted for the latter and created a decorator for the class above
0 -
No Problem 🙂 and thank you very much, I will look into that
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