Spring Data Solr Facet Range example?

981 views Asked by At

Using Spring data solr 1.4 -- I have FacetQuery defined as such:

@Facet(fields = { "client", "state", “market”, “price"  }, limit = 10)
FacetPage<SearchResponse> findTerm(String fieldName, String fieldValue, String filterField, String filterValue, Pageable pageable);

How do I add ranges to the facet price? I don't want all the single values, but 10-20, 20-30, 30-40, etc.

1

There are 1 answers

2
Apoorv Mittal On BEST ANSWER