SolR Query - Price ranges

自古美人都是妖i 提交于 2019-12-08 05:20:33

问题


I'm querying SolR server to get the price ranges.

How can I construct a query which returns at once:

  • price range for all of the items (without facet query)
  • price range (or list) for items with facet query

I need these four values for a slider like this:

all_min=============user_min========user_max========all_max

回答1:


Use StatsComponent to get min and max. Use facet.range or facet.query to get facets on specific price ranges.



来源:https://stackoverflow.com/questions/7241960/solr-query-price-ranges

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!