Re: json facet - date range & interval
that worked ...thanks David! On Tue, Jun 28, 2016 at 11:22 AM, David Santamauro < david.santama...@gmail.com> wrote: > > Have you tried %-escaping? > > json.facet = { > daterange : { type : range, > field : datefield, > start : "NOW/DAY%2D10DAYS", > end : "NOW/DAY", > gap : "%2B1DAY" > > } > } > > > On 06/28/2016 01:19 PM, Jay Potharaju wrote: > >> json.facet={daterange : {type : range, field : datefield, start : >> "NOW/DAY-10DAYS", end : "NOW/DAY",gap:"\+1DAY"} } >> >> Escaping the plus sign also gives the same error. Any other suggestions >> how >> can i make this work? >> Thanks >> Jay >> >> On Mon, Jun 27, 2016 at 10:23 PM, Erick Erickson > > >> wrote: >> >> First thing I'd do is escape the plus. It's probably being interpreted >>> as a space. >>> >>> Best, >>> Erick >>> >>> On Mon, Jun 27, 2016 at 9:24 AM, Jay Potharaju >>> wrote: >>> Hi, I am trying to use the json range facet with a tdate field. I tried the following but get an error. Any suggestions on how to fix the following error /examples for date range facets. json.facet={daterange : {type : range, field : datefield, start :"NOW-10DAYS", end : "NOW/DAY", gap : "+1DAY" } } msg": "Can't add gap 1DAY to value Fri Jun 17 15:49:36 UTC 2016 for >>> field: >>> datefield", "code": 400 -- Thanks Jay >>> >>> >> >> >> -- Thanks Jay Potharaju
Re: json facet - date range & interval
Have you tried %-escaping? json.facet = { daterange : { type : range, field : datefield, start : "NOW/DAY%2D10DAYS", end : "NOW/DAY", gap : "%2B1DAY" } } On 06/28/2016 01:19 PM, Jay Potharaju wrote: json.facet={daterange : {type : range, field : datefield, start : "NOW/DAY-10DAYS", end : "NOW/DAY",gap:"\+1DAY"} } Escaping the plus sign also gives the same error. Any other suggestions how can i make this work? Thanks Jay On Mon, Jun 27, 2016 at 10:23 PM, Erick Erickson wrote: First thing I'd do is escape the plus. It's probably being interpreted as a space. Best, Erick On Mon, Jun 27, 2016 at 9:24 AM, Jay Potharaju wrote: Hi, I am trying to use the json range facet with a tdate field. I tried the following but get an error. Any suggestions on how to fix the following error /examples for date range facets. json.facet={daterange : {type : range, field : datefield, start :"NOW-10DAYS", end : "NOW/DAY", gap : "+1DAY" } } msg": "Can't add gap 1DAY to value Fri Jun 17 15:49:36 UTC 2016 for field: datefield", "code": 400 -- Thanks Jay
Re: json facet - date range & interval
json.facet={daterange : {type : range, field : datefield, start : "NOW/DAY-10DAYS", end : "NOW/DAY",gap:"\+1DAY"} } Escaping the plus sign also gives the same error. Any other suggestions how can i make this work? Thanks Jay On Mon, Jun 27, 2016 at 10:23 PM, Erick Erickson wrote: > First thing I'd do is escape the plus. It's probably being interpreted > as a space. > > Best, > Erick > > On Mon, Jun 27, 2016 at 9:24 AM, Jay Potharaju > wrote: > > Hi, > > I am trying to use the json range facet with a tdate field. I tried the > > following but get an error. Any suggestions on how to fix the following > > error /examples for date range facets. > > > > json.facet={daterange : {type : range, field : datefield, start > > :"NOW-10DAYS", end : "NOW/DAY", gap : "+1DAY" } } > > > > msg": "Can't add gap 1DAY to value Fri Jun 17 15:49:36 UTC 2016 for > field: > > datefield", "code": 400 > > > > -- > > Thanks > > Jay > -- Thanks Jay Potharaju
Re: json facet - date range & interval
First thing I'd do is escape the plus. It's probably being interpreted as a space. Best, Erick On Mon, Jun 27, 2016 at 9:24 AM, Jay Potharaju wrote: > Hi, > I am trying to use the json range facet with a tdate field. I tried the > following but get an error. Any suggestions on how to fix the following > error /examples for date range facets. > > json.facet={daterange : {type : range, field : datefield, start > :"NOW-10DAYS", end : "NOW/DAY", gap : "+1DAY" } } > > msg": "Can't add gap 1DAY to value Fri Jun 17 15:49:36 UTC 2016 for field: > datefield", "code": 400 > > -- > Thanks > Jay
json facet - date range & interval
Hi, I am trying to use the json range facet with a tdate field. I tried the following but get an error. Any suggestions on how to fix the following error /examples for date range facets. json.facet={daterange : {type : range, field : datefield, start :"NOW-10DAYS", end : "NOW/DAY", gap : "+1DAY" } } msg": "Can't add gap 1DAY to value Fri Jun 17 15:49:36 UTC 2016 for field: datefield", "code": 400 -- Thanks Jay