Elasticsearch:续订过期文档(_ttl已过期)

时间:2015-04-28 19:02:49

标签: elasticsearch

我使用x天的默认ttl时间创建了一个索引。我有文件,将在持久数据库(postgres,mysql等)中更新。如果文档已更新,则必须在Elasticsearch中续订。但是在文档过期之后只会抛出异常:

{
   "error": "RemoteTransportException[[es][inet[/127.0.0.1:9300]][indices:data/write/index]]; nested: MapperParsingException[failed to parse [_ttl]]; nested: AlreadyExpiredException[already expired [index]/[type]/[1] due to expire at [146901939600] and was processed at [1430247194395]]; ",
   "status": 400
}

如果文档已经过期,是否可以续订文件?

0 个答案:

没有答案