Hi Tamas, Maybe I am missing the point and you already discarded that option, but you should be able to cover such cases with simple faceting?
Thanks, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 2 Oct 2018, at 12:55, Tamás Barta <bartata...@gmail.com> wrote: > > Hi, > > I have been using Solr for a while for an online web store. After search a > filter box appears where user can filter results by many attributes. My > question is how can I do it with Solr that he filter box show only > available options based on result. For example if attribute "type" can be > 1, 2, 3 but the results contains only 1 and 2, then only these two values > should be available in the filters. > > I get only the first page results and I don't want to read the full results > from Solr because of performance. Is there any way to get available values > by fields for a query without degrade performance? > > Thanks, Tamás