You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ishan Chattopadhyaya (JIRA)" <ji...@apache.org> on 2019/04/10 08:31:00 UTC
[jira] [Comment Edited] (SOLR-13272) Interval facet support for
JSON faceting
[ https://issues.apache.org/jira/browse/SOLR-13272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814187#comment-16814187 ]
Ishan Chattopadhyaya edited comment on SOLR-13272 at 4/10/19 8:30 AM:
----------------------------------------------------------------------
The format looks fine to me.
Here's a formatted version
{code}
{
pubyear: {
type: interval,
field: pubyear_i,
intervals: [
{
"key": "old books",
"range": "[1900,1999]"
},
{
"key": "new books",
"range": "[2000,2200]"
},
]
}
}
{code}
was (Author: ichattopadhyaya):
The format looks fine to me.
Here's a formatted version
{code}
{
pubyear: {
type: interval,
field: pubyear_i,
intervals: [
{
key: "old books",
value: "[1900,1999]"
},
{
key: "new books",
value: "[2000,2200]"
},
]
}
}
{code}
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org