You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jochen (Jira)" <ji...@apache.org> on 2024/01/24 11:00:00 UTC

[jira] [Commented] (SOLR-15492) Add another constructor do RangeFacetMap

    [ https://issues.apache.org/jira/browse/SOLR-15492?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17810331#comment-17810331 ] 

Jochen commented on SOLR-15492:
-------------------------------

I think, all we can do is allow all strings.
I currently have a work around to create the RangeFacetMap with long values and then use Map interface to set the strings afterwards

> Add another constructor do RangeFacetMap
> ----------------------------------------
>
>                 Key: SOLR-15492
>                 URL: https://issues.apache.org/jira/browse/SOLR-15492
>             Project: Solr
>          Issue Type: Wish
>          Components: clients - java
>    Affects Versions: 8.9
>            Reporter: Jochen
>            Priority: Trivial
>
> The class {{org.apache.solr.client.solrj.request.json.RangeFacetMap}} is missing the constructor:
> {{RangeFacetMap(final String fieldName, final String start, final String end, final String gap) {}}
> {{...
> }}{{}
> }}
> The constructor is needed, because something like:
> {{new RangeFacetMap("date", "NOW/YEAR-50YEARS", "NOW/DAY", "+1YEAR");}}
> is perfectly valid
>  



--
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