Sunday 15 May 2011

elasticsearch - UPSERT function for elastica? -



elasticsearch - UPSERT function for elastica? -

i batch updates in elastic search using elastica. info comes postgresql db , es id's same psql id's. after operation in sql db id`s , it's info can changed, deleted or inserted.

when doing batch updates on id`s in es don't exist, exeption thrown - bad. when trying delete id doesn't exist, exeption follows - bad.

is there elegant , efficient solution batch updates avoiding exeptions?

can't elastica, can utilize elasticsearch bulk api + upsert on curl. feels quite nasty should work.

elasticsearch elastica

No comments:

Post a Comment