Skip to content

Percolating an item of a type that has a default _ttl mapping configured throws an error #2975

@MrTheDave

Description

@MrTheDave

Using elasticsearch version 0.90 - windows binaries.

When I try to percolate an item for an index/type that has a default _ttl defined, I get the following error:

{
  "error":
  "MapperParsingException[failed to parse [_ttl]]; nested: AlreadyExpiredException[already expired [test]/[type1]/[null] due to expire at [5184000000] and was processed at [1367509482308]]; ",
  "status":400
}

Here are the steps to recreate the error:

curl -XPUT localhost:9200/test

curl -XPUT localhost:9200/test/type1/_mapping -d '{ 
        "type1": { 
             "_ttl": { 
               "enabled": true,
               "default": "60d"
             },
             "_timestamp": { "enabled": true } 
        }
      }'

curl -XPUT localhost:9200/_percolator/test/kuku -d '{ 
          "query" : { 
              "term" : { 
                "field1" : "value1" 
              } 
            }
        }'

curl -XGET localhost:9200/test/type1/_percolate -d '{ "doc" : { "field1" : "value1" }}'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions