Skip to content
Advertisement

is there any way for algolia api to get record through objectID and update that record

hey i am just asking about Algolia API (search engine) once i stored record into indices then how an i update that

JavaScript

when i am looping record how can i add condition to get record through objectID from algolia if the record exist then update otherwise add record into Algolia

Advertisement

Answer

use partialUpdateObjects and set ‘createIfNotExists’ => true doc is here, https://www.algolia.com/doc/api-reference/api-methods/partial-update-objects/

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement