Getting error when i applied TTL while creating Index. Able to search data.
I set TTL for 4m , after 4m still i see data available. How to make TTL
work and delete records after specified time.
I'm using elasticsearch 1.09 (latest).
Any help would be much appreciated.
Index Creation
"type" : "jdbc",
"jdbc" : {
"strategy" : "oneshot",
"driver" : "com.microsoft.sqlserver.jdbc.SQLServerDriver",
"url" : "jdbc:sqlserver://localhost:1433;databaseName=cdt",
"user" : "CDT_Admin",
"password" : "cdtpassword",
"index": "local-test",
"type": "logs-test",
"_ttl": "4m",
"sql": "select [AccountContextId] AS
_id,[NumberOfPhoneLines],[AccountNumber],TransactionTime from
AccountInformation.CustomerInformation"
Error -
failed to execute ttl purge
java.lang.ClassCastException:
org.elasticsearch.index.mapper.core.StringFieldMap
per cannot be cast to org.elasticsearch.index.mapper.internal.TTLFieldMapper
at
org.elasticsearch.indices.ttl.IndicesTTLService$PurgerThread.getShard
sToPurge(IndicesTTLService.java:162)
at
org.elasticsearch.indices.ttl.IndicesTTLService$PurgerThread.run(Indi
cesTTLService.java:121)
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6f9e9a4d-9f8f-4afc-ae63-0890b84d938d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.