metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (METAMODEL-172) ElasticSearch Date types should be converted properly
Date Thu, 27 Aug 2015 13:24:45 GMT


ASF GitHub Bot commented on METAMODEL-172:

Github user kaspersorensen commented on the pull request:
    +1 from me then :)

> ElasticSearch Date types should be converted properly
> -----------------------------------------------------
>                 Key: METAMODEL-172
>                 URL:
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Alberto
>            Priority: Critical
> When working with ElasticSearch indexes that contains Date types the API is returning
Strings instead of proper Date object.
> We should add some logic inside the ElasticSearchUtils createRow() method to convert
these strings to java.Date objects. As we are not doing this conversion so far the TimeComparator
convertFromString method is not able to parse the string value as a Date, the method returns
null and then the FormatHelper class is throwing an IllegalStateException.
> This is a bit tricky though because the number of date formats supported by ElasticSearch
is quite big  to think about creating a SimpleDateFormat to support every single case:

This message was sent by Atlassian JIRA

View raw message