I've found the solution myself. Logstash provides the fields analyzed and not_analyzed in the .raw field. So i only have to query the objectId.raw field.
-- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Finding-exact-value-with-hyphen-on-not-analyzed-field-is-not-working-tp4074265p4074285.html Sent from the Elasticsearch Users mailing list archive at Nabble.com. -- 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/1430298876678-4074285.post%40n3.nabble.com. For more options, visit https://groups.google.com/d/optout.