You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Houston Putman (Jira)" <ji...@apache.org> on 2020/09/10 20:52:00 UTC

[jira] [Commented] (SOLR-13645) Add analytics function to format/extract components from dates

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

Houston Putman commented on SOLR-13645:
---------------------------------------

Hey [~nealsidhwaney], thank you for the contribution! I'm so sorry that this hasn't been acknowledged or reviewed yet. I'll take a look a deeper look at it and get back to you.

My initial thoughts are that it is very clean and fits nicely in with the rest of the contrib. The addition of the tests and docs is great too.

> Add analytics function to format/extract components from dates
> --------------------------------------------------------------
>
>                 Key: SOLR-13645
>                 URL: https://issues.apache.org/jira/browse/SOLR-13645
>             Project: Solr
>          Issue Type: New Feature
>    Affects Versions: 8.1.1
>            Reporter: Neal Sidhwaney
>            Priority: Minor
>         Attachments: SOLR-13645-Analytics-function-for-date-components.patch, SOLR-13645-Analytics-function-for-date-components.patch, SOLR-13645-Analytics-function-for-date-components.patch, SOLR-13645-Analytics-function-for-date-components.patch, SOLR-13645-Analytics-function-for-date-components.patch, SOLR-13645-Analytics-function-for-date-components.patch
>
>
> It's helpful when running analytics to be able to do manipulation on dates such as extracting month/day/year, converting to th week of year, etc, and other formatting as many existing libraries provide.  I have a patch going through final testing that will add this to the analytcs library.
> One thing I'm sort of amibvialent about is that it exposes that we use Java date parsing in the analytics function, because the syntax is the same format string that SimpleDateFormat accepts.  Ideally there would be an abstraction between the analytics language and what's used on the backend to implement it.  On the other hand, implementing a syntax for time/date formatting is something that's been done many many times before, and this is not the only place where Java date particulars show through.  It would be good to revisit this at a later time.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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