简体   繁体   中英

Does Solr for TYPO3 have a dynamic range facet?

the request by our customer is pretty simple - they want the ranges of, for example, a numeric range facet to be set to values based on the min and max value stored in the solr index. at the moment we just define a "hard"-range like 5-500 with gap 5. but they want if the document with the lowest value is 15 and the highest is 1600 to have a range for the search facet from 15-1600.

i cannot find a solution for that in the documentation so i guess its not possible out of the box? what would be the solution here? should we fetch those ranges on pageload and manipulate the ranges to work based on that values?

any ideas?

Did you take a look at the Examples folder inside TypoScript? There is an example for NumericRange, I think that's what you're searching for:

https://github.com/TYPO3-Solr/ext-solr/tree/master/Configuration/TypoScript/Examples/Facets/NumericRange

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM