Support facet intervals

Created on 19 May 2020, over 4 years ago
Updated 15 January 2025, 6 days ago

Solr supports interval faceting which allows to compute counts for documents matching predefined ranges.

Search API Solr does not support this, although it does support arbitrary facet queries (implemented in #2128537: Add support for facet queries ) which provides a workaround at the expense of performance:

If you are concerned about the performance of your searches you should test with both options. Interval faceting tends to be better with multiple intervals for the same fields, while facet query tend to be better in environments where filter cache is more effective (static indexes for example).
https://lucene.apache.org/solr/guide/6_6/faceting.html#Faceting-Interval...

We do use interval faceting via this sandbox module I made, but the integration would definitely be better if it was supported natively by Search API Solr: https://www.drupal.org/sandbox/fengtan/3108034

Does it make sense to support facet intervals in this module, similar to what was done in #2128537: Add support for facet queries ?

Note that a couple of other modules implement a similar functionality but do not make use of Solr facet intervals:

Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

🇨🇦Canada fengtan Montreal, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024