You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2025/08/10 20:11:00 UTC

[jira] [Resolved] (SOLR-17836) JSON FACET API Error: cant add gap to value for field

     [ https://issues.apache.org/jira/browse/SOLR-17836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris M. Hostetter resolved SOLR-17836.
---------------------------------------
    Resolution: Not A Problem

> JSON FACET API Error: cant add gap to value for field 
> ------------------------------------------------------
>
>                 Key: SOLR-17836
>                 URL: https://issues.apache.org/jira/browse/SOLR-17836
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 9.8.1
>            Reporter: Arsal Jalib
>            Priority: Minor
>
> Running the following query via a request give the following error:
> [/solr/mindex|http://172.189.48.140/solr/m]/select?json.facet={
>   last14Days:
> {     type:range,     field:ReleaseDate_PT1,     start:"NOW-2MONTH/DAY",     end:"NOW/DAY",     gap:"+1DAY"   }
> }
> lst name="error">
> <lst name="metadata">
> <str name="error-class">org.apache.solr.common.SolrException</str>
> <str name="root-error-class">java.text.ParseException</str>
> </lst>
> <str name="msg">Can't add gap 1DAY to value Thu Jun 05 00:00:00 UTC 2025 for field: ReleaseDate_PT1</str>
> <int name="code">400</int>
> </lst>
> </response>
> However the same JSON when entered using the json.facet text box in the Admin UI, it returns results fine.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org