I have a ES mapping with ES unique identifier (_id) and custom identifier.
I need this custom indentifier to connect documents from ES index to
database. Ok, so you think why I don't use this custom identifier as _id
field. I can't replace ES identifier with this custom identifier because in
database there can be multiple rows with this identifier. So now if I make
bulk insert with 1000 objects I get the response with ES identifiers and I
can't mark objects as indexed in database. Is there any possibility to get
custom fields from bulk response or is there other solution that I don't
see at the moment?
I have a ES mapping with ES unique identifier (_id) and custom identifier.
I need this custom indentifier to connect documents from ES index to
database. Ok, so you think why I don't use this custom identifier as _id
field. I can't replace ES identifier with this custom identifier because in
database there can be multiple rows with this identifier. So now if I make
bulk insert with 1000 objects I get the response with ES identifiers and I
can't mark objects as indexed in database. Is there any possibility to get
custom fields from bulk response or is there other solution that I don't
see at the moment?
esmaspäev, 27. aprill 2015 11:14.12 UTC+3 kirjutas Jörg Prante:
You can send a term query after a bulk response, or you can implement your
own bulk action, which returns the custom ID instead of _id.
Jörg
On Mon, Apr 27, 2015 at 9:55 AM, Jakko Sikkar <jakko....@gmail.com
<javascript:>> wrote:
Hi,
I have a ES mapping with ES unique identifier (_id) and custom
identifier. I need this custom indentifier to connect documents from ES
index to database. Ok, so you think why I don't use this custom identifier
as _id field. I can't replace ES identifier with this custom identifier
because in database there can be multiple rows with this identifier. So now
if I make bulk insert with 1000 objects I get the response with ES
identifiers and I can't mark objects as indexed in database. Is there any
possibility to get custom fields from bulk response or is there other
solution that I don't see at the moment?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.