Before a batch is queued, Opensolr checks it against your index and your plan. A refused request queues nothing: status is false and msg says why. Fix it and send again.
What is checked
- Batch. 1 to 50 documents per request.
Answer:ERROR_,DOCUMENTS_ MUST_ BE_ NON_ EMPTY_ ARRAY ERROR_BATCH_ LIMIT_ 50_ DOCUMENTS_ MAX - Request size. The documents must fit the largest request the server takes.
Answer:ERROR_, with the size in the messagePAYLOAD_ TOO_ LARGE_ MAX_ <size> - Index size. Your index plus the batch must stay within the index size of your plan.
Answer:ERROR_, withDISK_ QUOTA_ EXCEEDED current_mbandmax_mb - Bandwidth. The index must not have used up its monthly bandwidth.
Answer:ERROR_, withBANDWIDTH_ LIMIT_ EXCEEDED used_mbandmax_mb - Document size. The
title,descriptionandtextof one document together fit the document size of your plan (4.8 MB on the free plan). A file sent with"rtf": trueis stopped at the same size when it is downloaded.
Answer:VALIDATION_ERRORS: "exceeds your plan's max page size" - Fields.
uriis an http(s) URL;titleanddescriptionare there;textis there unless"rtf": true;filecomes with"rtf": trueand a job id fromfile_extract.
Answer:VALIDATION_ERRORS, with anerrorslist such asDocument [3]: description is required - Index. The index is yours and sits on a site search server.
Answer:ERROR_NOT_CORE_OWNER,ERROR_,CORE_ NOT_ WEBCRAWLER_ ENABLED ERROR_INVALID_CORE_NAME - Speed. By default every account may make 120 API requests a minute and 1,200 an hour.
Answer: HTTP 429,ERROR_orRATE_ LIMIT_ PER_ MINUTE ERROR_RATE_ LIMIT_ PER_ HOUR - Address. Data Ingestion answers on
api.opensolr.comonly.
Answer:WRONG_API_HOST, with the right address - Queue. The queue takes the batch.
Answer:ERROR_: send the same batch again a little laterQUEUE_ UNAVAILABLE_ TRY_ AGAIN
The sizes of each plan: plans. Your index's use: Disk space and Bandwidth. Rate limits in full: API rate limits.
Not refusals
- Duplicates. A document already waiting in the queue for this index, or sent twice in one batch, is skipped and the rest is queued. When every document was already waiting, the answer is
All documents already queuedwith their number indupes_skipped. - Your AI allowance. Past your monthly AI allowance, documents are still indexed and found by their words, only without meaning vectors.
Problems found while a job runs (a file that cannot be downloaded, a field your index refuses) do not refuse the request. They show in the job's result, with the reasons (The Data Ingestion queue).