[
https://issues.apache.org/jira/browse/SOLR-13272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814232#comment-16814232
]
Mikhail Khludnev commented on SOLR-13272:
-----------------------------------------
I'm not sure why to introduce range mini-syntax inside of json string value. I
propose to piggyback on json array.
{code}
"range": [2000,2200]
{code}
and
{code}
"range": ["CA","MA"]
{code}
I'm aware of a need for this range mini-syntax - exclusive range gaps, but I've
heard that many people are frustrated by "unbalanced" brackets {{
"[2000,2200}". So, we can make it more logical
{code}
"range": ["CA","MA"],
"exclude_to":true
{code}
or even utilizing parallel arrays
{code}
"range": ["CA","MA"],
"exclude":[false, true]
{code}
These two last samples exclude closing gap from the range.
> Interval facet support for JSON faceting
> ----------------------------------------
>
> Key: SOLR-13272
> URL: https://issues.apache.org/jira/browse/SOLR-13272
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Facet Module
> Reporter: Apoorv Bhawsar
> Priority: Major
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
> Interval facet is supported in classical facet component but has no support
> in json facet requests.
> In cases of block join and aggregations, this would be helpful
> Assuming request format -
> {code:java}
> json.facet={pubyear:{type : interval,field :
> pubyear_i,intervals:[{key:"2000-2200",value:"[2000,2200]"}]}}
> {code}
>
> PR https://github.com/apache/lucene-solr/pull/597
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]