Through my experiment, it seems not possible to use string as primary key in Elasticsearch. If type String is used , then the _id will be something like this: "_id":"[B@fe583b" which uses the object address in jvm instead of the real value. So, is there any way to generate a composite _id from two integer value?
-- 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/f073e04b-f2a1-4e5a-a7e0-ff93727f6e9f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.