algolia / algolia/algoliasearch-client-javascript

Add option to skip failing records on saveObjects() rather than letting the complete operation fail

Open
#1,506 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
1.4k
Forks
226
PR merge metrics
No merged PRs in 30d

Description

I tried to add records to my index and one of those records exceeds the size:
` content: '{"message":"Record at the position 69 objectID=0db0a327-b567-4225-bd4e-9f1019c930cd is too big size='... `

Apparently the complete batch operation fails, i.e. no records are written to the index at all. Is there any option to just skip failing records and still write the others to the index? I have not found such an option in the docs.

The only (not so nice) option I see is to check the error response, get the failed record IDs, remove them from the record list and try the operation again.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.