简体   繁体   English

TYPO3 的 Solr 是否具有动态范围方面?

[英]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.我们客户的请求非常简单 - 例如,他们希望将数字范围方面的范围设置为基于 solr 索引中存储的最小值和最大值的值。 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.目前,我们只定义了一个“硬”范围,如 5-500,间隙为 5。但他们希望如果文档的最小值为 15,最大值为 1600,则搜索方面的范围为 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?您是否查看过 TypoScript 中的Examples文件夹? There is an example for NumericRange, I think that's what you're searching for: NumericRange 有一个示例,我认为这就是您要搜索的内容:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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