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

Parse error #3

Open
jmrichardson opened this issue Sep 9, 2017 · 0 comments
Open

Parse error #3

jmrichardson opened this issue Sep 9, 2017 · 0 comments

Comments

@jmrichardson
Copy link

I am getting this error:

{
"reason": {
          "type": "parse_exception",
          "reason": "failed to parse date field [1420070400001] with format [dateOptionalTime]",
          "caused_by": {
            "type": "illegal_argument_exception",
            "reason": "Unrecognized chars at the end of [1420070400001]: [0001]"
          }

I can do a test filter using epoch only if I add the epoch_millis format:

GET _search
{
    "query": {
        "range" : {
            "file.last_modified" : {
                "gte" : "1420070400001",
                "format" : "epoch_millis"
            }
        }
    }
}
}

Is there a way to update the query to use format?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant