monsieurbiz / SyliusSearchPlugin

A search plugin using Elasticsearch for Sylius
MIT License
45 stars 38 forks source link

Elastic return only top 10 attributes / options #195

Open alexispe opened 1 year ago

alexispe commented 1 year ago

Hello,

For each filter, only the top 10 attributes/options are displayed.

For example, my products have a "color" attribute. I want to be able to filter products by any available color, but here I can only filter by the 10 colors most present in search results.
image On this image, I've only got 10 colors, whereas I could have 18, as there are 18 different colors in total in the search results.

Here's the return of Elasticsearch: image

The Elasticseach documentation says:

By default, the terms aggregation returns the top ten terms with the most documents. Use the size parameter to return more terms, up to the search.max_buckets limit.

Thanks for your plugin