I have a mvel script (groovy looks the same) as follows: if (!ctx._source.list.contains(document)) {ctx._source.list += document;} else {ctx.op = \"none\"}";
I have a java map map.put("id", 100L); When I try to match the above document to an existing ES document it will fail because it's a "long". If both documents are "long" like above the match fails. Mapping doesn't matter (mapping field with long will still fail) Using java integer works ie map.put("id", 100); It seems the scripts (mvel and groovy) cast the number to integer before doing the match (?) This is okay for now but if my numbers exceed the java integer max I will need a solution. Regards, -- Please update your bookmarks! We have moved to https://discuss.elastic.co/ --- 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/939d94b5-55b7-4e62-9b20-2f60bf7fdf1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.