[ 
https://issues.apache.org/jira/browse/SOLR-7795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14643091#comment-14643091
 ] 

ASF GitHub Bot commented on SOLR-7795:
--------------------------------------

GitHub user lianngg opened a pull request:

    https://github.com/apache/lucene-solr/pull/196

    SOLR-7795: Fold Interval Faceting into Range Faceting

    For https://issues.apache.org/jira/browse/SOLR-7795

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/lianngg/lucene-solr solr7795

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucene-solr/pull/196.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #196
    
----
commit 9c3cf3069c7f31337af0a23cdb623bae0be1fb66
Author: Zack Liang <[email protected]>
Date:   2015-07-22T00:23:52Z

    Using Interval Faceting with facet.range

commit 1f5ed3b8b9b606ab99a501356a2048fadd21dc24
Author: Zack Liang <[email protected]>
Date:   2015-07-22T17:45:59Z

    Refactor

commit 754dac8f01d0f307c8a5e83f95b8862b533c8c44
Author: Zack Liang <[email protected]>
Date:   2015-07-22T18:42:20Z

    Modify example test xml file

commit f8a4b7798ee239e2a868652f0dd141a02c1a26f3
Author: Zack Liang <[email protected]>
Date:   2015-07-22T19:57:01Z

    Fix QueryResponse and sample xml test file

commit e8b83a20d8c3ec80d5614853783b3e2a903b7e09
Author: Zack Liang <[email protected]>
Date:   2015-07-22T21:58:11Z

    Add "counts" to the response

commit cfa956b9202461d7f2321034283a3e1c4be59068
Author: Zack Liang <[email protected]>
Date:   2015-07-22T22:00:22Z

    Merge branch 'trunk' into solr7795

commit 0158d844b805cbe7b4c42a753a914877335d41b3
Author: Zack Liang <[email protected]>
Date:   2015-07-24T19:29:47Z

    Fix SolrQueryTest. facet.interval is now deprecated.

commit cb6d5bec2278e0614acca91a84f5354532802f61
Author: Zack Liang <[email protected]>
Date:   2015-07-25T00:52:31Z

    Support Interval Faceting on both facet.interval and facet.range

commit 24e5df4b6013cbce50e0e75c8a6ae4ebfdd3ab6b
Author: Zack Liang <[email protected]>
Date:   2015-07-25T00:56:28Z

    Merge branch 'solr7795' of https://github.com/lianngg/lucene-solr into 
solr7795

commit 490b035bc5be4e1f2938338e621d0fcee33f8923
Author: Zack Liang <[email protected]>
Date:   2015-07-25T21:51:08Z

    Merge branch 'trunk' into solr7795

commit 0b47082eb0953325cb08a6602e43f78ae07750a7
Author: Zack Liang <[email protected]>
Date:   2015-07-27T17:14:41Z

    Add @Deprecated to interval faceting functions

commit b841d717307b09e7d60e293a0d283441d6ed381d
Author: Zack Liang <[email protected]>
Date:   2015-07-27T17:24:00Z

    Merge branch 'trunk' into solr7795

commit 1aae8c044ab7243196bb2bbeb9a5c996e4d53496
Author: Zack Liang <[email protected]>
Date:   2015-07-27T17:34:04Z

    Fix javadoc

----


> Fold Interval Faceting into Range Faceting
> ------------------------------------------
>
>                 Key: SOLR-7795
>                 URL: https://issues.apache.org/jira/browse/SOLR-7795
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to