algolia / algolia/algoliasearch-client-javascript
Add option to skip failing records on saveObjects() rather than letting the complete operation fail
- Lingua principale
- TypeScript
- Stelle
- 1.4k
- Fork
- 226
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dal punto di ingresso saveObjects() e dalla relativa documentazione, quindi riproduci il comportamento batch con un record sovradimensionato. Il lavoro è completato quando l’API offre un modo documentato per saltare i record che falliscono continuando a scrivere i record validi del batch.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100