You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bulk API is useful in cases of create or update multiple documents. Current API has some problems with performance in cases of inserting thousands of documents.
But I can't add it to the core, because if I add this to rom/elasticsearch/commands.rb it just doesn't work and I haven't found any places in the code where commands being configured.
Thanks for this code, managed to implement my bulk insert command using that. Probably you have already managed to configure this, I'll just leave the config needed here in case someone else is looking for same answer:
config = ROM::Configuration.new(:elasticsearch, "http://#{host}:#{port}")
config.register_command(Commands:: Bulk) #my commands are in commands namespace
rom_es = ROM.container(config)
...
Bulk API is useful in cases of create or update multiple documents. Current API has some problems with performance in cases of inserting thousands of documents.
Bulk API
The text was updated successfully, but these errors were encountered: