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" }}'
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:
Here are the steps to recreate the error: