I'm new to elasticsearch. I'm facing issue when indexing with java APIs.
I'm able to index documents with '_id' field using helpers.bulk in python.
But when I'm trying to index the same with java API's I get this exception.
MapperParsingException[Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters.]
Can you help sorting this out? Is there helpers equivalent for java?
Thanks in advance!