Thank you Mark, I'll keep trying, will also try elasticdump to load custom mapping or play with templates.
Cheers, David On Tuesday, March 24, 2015 at 3:44:55 PM UTC-7, Mark Walkom wrote: > > Try deleting the index and recreating using the updated mapping? > > Also as a suggestion, avoid using TTL, it's very resource intensive and if > you are using time based data then you should use time based indices. > > On 25 March 2015 at 08:28, David Kleiner <david....@gmail.com > <javascript:>> wrote: > >> Greetings, >> >> I am trying to update mapping to make certain fields not_analyzed. The >> index gets created from default template, now I'm trying to add the >> following mapping to it (long) and get an error. The index is empty. >> >> I'm probably missing something very obvious. >> >> Thank you, >> >> David >> >> >> ======== >> >> $ curl -XPUT localhost:9200/backend/mytype/_mapping -d mytype_mapping.json >> {"error":"RemoteTransportException[[XXXX / Luis >> Buñuel][inet[/10.XX.XX.XX:9333]][indices:admin/mapping/put]]; nested: >> NullPointerException; ","status":500}(dk)dk- >> >> ======== >> >> updated mapping: >> { >> "mappings" : { >> >> {"mytype" : { >> "_ttl" : { >> "enabled" : true, >> "default" : 172800000 >> }, >> "properties" : { >> "@timestamp" : { >> "type" : "date", >> "format" : "dateOptionalTime" >> }, >> "@version" : { >> "type" : "string" >> }, >> "file" : { >> "type" : "string" >> }, >> "host" : { >> "type" : "string" >> }, >> "json" : { >> "properties" : { >> "XXXX.buffer.size" : { >> "type" : "long" >> }, >> "action" : { >> "type" : "string","index" : "not_analyzed" >> }, >> >> [ ....] >> >> -- >> 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 elasticsearc...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/6222b24f-7cf1-42ea-a0e6-68b52c4e9e76%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/6222b24f-7cf1-42ea-a0e6-68b52c4e9e76%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/7ffd5cda-ca1f-443e-b476-27f1d3765c1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.