解析弹性搜索中的日期错误

时间:2017-10-05 07:48:41

标签: php elasticsearch

我有[type] => mapper_parsing_exception [reason] => failed to parse [prod_added_on] [caused_by] => Array( [type] => illegal_argument_exception [reason] => Invalid format: "2010-12-27 07:15:06" /* is malformed at */ "10-12-27 07:15:06" ) 格式。

'date' => [
     'type' => 'date',
     'format' => 'yyyy-MM-dd HH:mm:ss'
],

以下是我的代码来映​​射日期

{
  "database": {
    "rules": "database.rules.json"
  },
  "hosting": {
    "public": "build",
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      },
      {
        "source": "/details/**",
        "function": "details"
      }
    ]
  }
}

0 个答案:

没有答案