Open
Description
- Algolia Client Version: 3.16.5
- Language Version: JAVA
Description
We implemented a new agent which update existing items from an Algolia index and we observed that partialUpdateObject does not work as expected : some fields, not declared in attributesToRetrieved, are removed when saving an updated item.
Steps To Reproduce
- Having an Algolia index with data (ex: [objectID, title, text, url, source, date, subSource])
- Set attributesToRetrieved with back office configuration (ex: [objectID, title, text, url, source])
- Retrieve items from this index with more restrictions on attributesToRetrieved (ex: [objectID, title, text])
- Add a new field to item (ex: score)
- Save item with partialUpdateObject with only changed fields (ex:[objectID, title, score])
=> Items saved only have [objectID,title,text, url, source, score] fields and no more [date, subSource] fields
Metadata
Metadata
Assignees
Labels
No labels