solr-node-client icon indicating copy to clipboard operation
solr-node-client copied to clipboard

Add Support for Range Facets

Open schlechtweg opened this issue 11 years ago • 1 comments

Adding support for Range Facet handling (Solr 3.1+).

See "http://wiki.apache.org/solr/SimpleFacetParameters?highlight=%28%28SimpleFacetParameters%29%29#Facet_by_Range" for detail parameters.

schlechtweg avatar Apr 02 '13 08:04 schlechtweg

Sure go head @schlechtweg, I will merge this :). You could add the method facetByRange(field,options) and internally this method calls facet(options). The facet(options) will now accept the options.range argument which is an object containing all the parameters for faceting by range. That's just a suggestion for the api, feel free to bring your zest, but be as close as possible with the solr api (naming...) :).

lbdremy avatar Apr 02 '13 09:04 lbdremy