Spring Data Solr Facet Range 示例?
Spring Data Solr Facet Range example?
使用 Spring data solr 1.4 -- 我已经 FacetQuery
定义如下:
@Facet(fields = { "client", "state", “market”, “price" }, limit = 10)
FacetPage<SearchResponse> findTerm(String fieldName, String fieldValue, String filterField, String filterValue, Pageable pageable);
如何为分面价格添加范围?我不想要所有的单一值,而是 10-20、20-30、30-40 等
似乎仍然是一个悬而未决的问题。查看:
https://github.com/spring-projects/spring-data-solr/pull/29
使用 Spring data solr 1.4 -- 我已经 FacetQuery
定义如下:
@Facet(fields = { "client", "state", “market”, “price" }, limit = 10)
FacetPage<SearchResponse> findTerm(String fieldName, String fieldValue, String filterField, String filterValue, Pageable pageable);
如何为分面价格添加范围?我不想要所有的单一值,而是 10-20、20-30、30-40 等
似乎仍然是一个悬而未决的问题。查看: https://github.com/spring-projects/spring-data-solr/pull/29