lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zack Liang (JIRA)" <>
Subject [jira] [Commented] (SOLR-7795) Fold Interval Faceting into Range Faceting
Date Thu, 13 Aug 2015 05:14:45 GMT


Zack Liang commented on SOLR-7795:

Hi [~tomasflobbe], the pull request has been updated.
The range facet response is integrated and now interval facet will use "intervals" instead
of "counts".
The tests in "" and "" are modified to verify

In addition, I added a test case "testMultipleRangeFacetsResponse", which reads "sampleMultipleRangeFacetsResponse.xml"
and check whether the response like your example can be parsed properly.

Please let me know your feedback, thanks!

> Fold Interval Faceting into Range Faceting
> ------------------------------------------
>                 Key: SOLR-7795
>                 URL:
>             Project: Solr
>          Issue Type: Task
>            Reporter: Tomás Fernández Löbbe
>             Fix For: 5.3, Trunk
> Now that range faceting supports a "filter" and a "dv" method, and that interval faceting
is supported on fields with {{docValues=false}}, I think we should make it so that interval
faceting is just a different way of specifying ranges in range faceting, allowing users to
indicate specific ranges.
> I propose we use the same syntax for intervals, but under the "range" parameter family:
> {noformat}
> facet.range=price&
> f.price.facet.range.set=[0,10]&
> f.price.facet.range.set=(10,100]
> {noformat}
> The counts for those ranges would come in the response also inside of the "range_facets"
section. I'm not sure if it's better to include the ranges in the "counts" section, or in
a different section (intervals?sets?buckets?). I'm open to suggestions. 
> {code}
> "facet_ranges":{
>       "price":{
>         "counts":[
>           "[0,10]",3,
>           "(10,100]",2]
>        }
> }
> {code}
> or…
> {code}
> "facet_ranges":{
>       "price":{
>         "intervals":[
>           "[0,10]",3,
>           "(10,100]",2]
>        }
> }
> {code}
> We should support people specifying both things on the same field.
> Once this is done, "interval faceting" could be deprecated, as all it's functionality
is now possible through range queries. 

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message