I'm newbie with ES and i'm trying to set manually each document ID. I've
seen in the documentation the es.mapping.id propperty and I'm trying to
set it in the conf part of the driver class the same way i set the index
and type of documents:
In the Mapper class I put in the MapWritable object a new key value pair
for each map:
MapWritable doc = new MapWritable();
String id = node+"|"+timestamp; //node and timestamp are two String values
that I have.
doc.put(new Text("id"), new Text(id));
And as a result I can't write in ES and get exceptions with this message:
JsonParseException[Unexpected character ('"' (code 34))
If I comment the es.mapping.id line and allow ES to set the documents ID
everything works fine.
What could I do?
Thanks in advance
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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ae11fa62-582e-4c67-8819-cd8616243e8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.