You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Kasper Sørensen (JIRA)" <ji...@apache.org> on 2015/08/30 08:09:45 UTC

[jira] [Resolved] (METAMODEL-172) ElasticSearch Date types should be converted properly

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

Kasper Sørensen resolved METAMODEL-172.
---------------------------------------
    Resolution: Fixed
      Assignee: Alberto

> ElasticSearch Date types should be converted properly
> -----------------------------------------------------
>
>                 Key: METAMODEL-172
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-172
>             Project: Apache MetaModel
>          Issue Type: Bug
>            Reporter: Alberto
>            Assignee: 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: https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-date-format.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)