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..

Hi everyone, is there an easy, fast way to increase the number of "valuefacets" in /catalog-search/

UP8T3GKFH
UP8T3GKFH Posts: 56 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi everyone, is there an easy, fast way to increase the number of "valuefacets" in /catalog-search/ ? Currently there seems to be a limit of 10. However, we have significantly more values for some attributes. Thanks

Comments

  • Tamas Nyulas
    Tamas Nyulas Application Architect Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hey, you can overwrite \Spryker\Client\Search\SearchConfig::getFacetNameAggregationSize() on project level.

  • UP8T3GKFH
    UP8T3GKFH Posts: 56 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks for this tip, works great. However, I still have a maximum of 10 values per valuefacet. But I have found no constant in the search module to change that. Where does this value come from?

  • Ievgen Varava
    Ievgen Varava Sprykee Posts: 154 πŸ§‘πŸ»β€πŸš€ - Cadet

    might come from elasticsearch configuration?

  • Tamas Nyulas
    Tamas Nyulas Application Architect Posts: 20 πŸ§‘πŸ»β€πŸš€ - Cadet

    It could be very much a default ES configuration, that you can change by modifying the respective part of the query