You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sandeep Khanzode <sa...@yahoo.com.INVALID> on 2016/09/21 03:40:46 UTC
JSON Facet API
Hello,
How can I specify JSON Facets in SolrJ? The below facet query for example ...
&json.facet={
facet1: {
type: query,
q: "field1:value1 AND field2:value2",
facet:
{
facet1sub1: {
type: query,
q: "{!field f=mydate op=Intersects}2016-09-08T08:00:00",
facet:
{
id:
{
type: terms,
field: id
}
}
},
facet1sub2: {
type: query,
q: "-{!field f=myseconddate op=Intersects}2016-09-08T08:00:00 AND -{!field f=mydateop=Intersects}2016-05-08T08:00:00",
facet:
{
id:
{
type: terms,
field: id
}
}
}
}
}
},
SRK
Re: JSON Facet API
Posted by Sandeep Khanzode <sa...@yahoo.com.INVALID>.
Thanks a lot, Bram. I will try that ... SRK
On Wednesday, September 21, 2016 11:57 AM, Bram Van Dam <br...@intix.eu> wrote:
On 21/09/16 05:40, Sandeep Khanzode wrote:
> How can I specify JSON Facets in SolrJ? The below facet query for example ...
SolrQuery query = new SolrQuery();
query.add("json.facet", jsonStringGoesHere);
- Bram
Re: JSON Facet API
Posted by Bram Van Dam <br...@intix.eu>.
On 21/09/16 05:40, Sandeep Khanzode wrote:
> How can I specify JSON Facets in SolrJ? The below facet query for example ...
SolrQuery query = new SolrQuery();
query.add("json.facet", jsonStringGoesHere);
- Bram