Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add epoch_ms to dynamic dates with format yyyy/MM/dd #12873

Closed
clintongormley opened this issue Aug 14, 2015 · 0 comments
Closed

Add epoch_ms to dynamic dates with format yyyy/MM/dd #12873

clintongormley opened this issue Aug 14, 2015 · 0 comments
Assignees
Labels
>bug good first issue low hanging fruit :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta1

Comments

@clintongormley
Copy link

When creating date fields dynamically:

PUT my_index/my_type/1
{
  "date_one": "2015-01-01", 
  "date_two": "2015/01/01"  
}

the date matching strict_date_optional_time adds the ||epoch_millis format as an alternative, but the date matching yyyy/MM/ss doesn't:

{
   "my_index": {
      "mappings": {
         "my_type": {
            "properties": {
               "date_one": {
                  "type": "date",
                  "format": "strict_date_optional_time||epoch_millis"
               },
               "date_two": {
                  "type": "date",
                  "format": "yyyy/MM/dd HH:mm:ss||yyyy/MM/dd"
               }
            }
         }
      }
   }
}

I think it should.

@jpountz jpountz changed the title Add eopch_ms to dynamic dates with format yyyy/MM/dd Add epoch_ms to dynamic dates with format yyyy/MM/dd Aug 14, 2015
@jasontedor jasontedor removed the help wanted adoptme label Aug 19, 2015
@jasontedor jasontedor self-assigned this Aug 19, 2015
jasontedor added a commit that referenced this issue Aug 19, 2015
This commit backports commit 4c9327d,
the fix #12977 for #12873 from master to 2.0.
@clintongormley clintongormley added :Search/Mapping Index mappings, including merging and defining field types and removed :Dates labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug good first issue low hanging fruit :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta1
Projects
None yet
Development

No branches or pull requests

2 participants