elasticsearch 如何设置ttl";“生命的时刻”;在播放2中,elasticsearch
如何在索引上设置“ttl”“生存时间”(这样所有早于“60秒”的结果都将从搜索中删除,例如在play2 elasticsearch()中 在经典的弹性搜索中,可以使用 play2 elasticsearch具有设置选项,我尝试使用此更改 ## Custom settings to apply when creating the index (optional) elasticsearch.index.settings="{'_ttl' : { 'enabled' : true, 'default' : '60s' }" ##创建索引时要应用的自定义设置(可选) elasticsearch.index.settings=“{'''ttl':{'enabled':true,'default':'60s'}” 但即使在一小时后,搜索结果仍然是可搜索的 我的搜索结果实体的注释如下: @IndexType(name = "searchResult") public class SearchResult extends Index { ... @IndexType(name=“searchResult”) 公共类搜索结果扩展了索引{。。。 @IndexMapping(value=“{searchResult:{\”\u ttl\:{\“enabled\”:true,\“default\”:\“12h\”}}) (由发行票回答) @IndexMapping(value = "{ searchResult : { \"_ttl\" : { \"enabled\" : true , \"default\" : \"12h\"} } }")
elasticsearch 如何设置ttl";“生命的时刻”;在播放2中,elasticsearch,
elasticsearch,playframework,ttl,
elasticsearch,Playframework,Ttl,如何在索引上设置“ttl”“生存时间”(这样所有早于“60秒”的结果都将从搜索中删除,例如在play2 elasticsearch()中 在经典的弹性搜索中,可以使用 play2 elasticsearch具有设置选项,我尝试使用此更改 ## Custom settings to apply when creating the index (optional) elasticsearch.index.settings="{'_ttl' : { 'enabled' : true, 'def