本文介绍了SolR查询-价格范围的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在查询SolR服务器以获取价格范围.
I'm querying SolR server to get the price ranges.
如何构造一次返回的查询:
How can I construct a query which returns at once:
- 所有商品的价格范围(无分面查询)
- 具有方面查询的商品的价格范围(或列表)
对于这样的滑块,我需要这四个值:
I need these four values for a slider like this:
all_min=============user_min========user_max========all_max
推荐答案
使用 StatsComponent 获取最小和最大使用 facet.range 或 facet.query 以获得特定价格范围内的构面.
Use StatsComponent to get min and max. Use facet.range or facet.query to get facets on specific price ranges.
这篇关于SolR查询-价格范围的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!