Articles on: Troubleshooting

No result while doing a search

If you don't have any documents after adding them, it's likely that your document upload failed.

To understand why, please check the status of the document addition task using the returned `taskUid`. If the task failed, the response should contain an error object.

Here is an example of a failed task:

    "uid": 1,
    "indexUid": "movies",
    "status": "failed",
    "type": "documentAdditionOrUpdate",
    "canceledBy": null,
    "details": { 
            "receivedDocuments": 67493,
            "indexedDocuments": 0
    "error": {
        "message": "Document does not have a `:primaryKey` attribute: `:documentRepresentation`.",
        "code": "internal",
        "type": "missing_document_id",
        "link": "",
    "duration": "PT1S",
    "enqueuedAt": "2021-08-10T14:29:17.000000Z",
    "startedAt": "2021-08-10T14:29:18.000000Z",
    "finishedAt": "2021-08-10T14:29:19.000000Z"

Check your error message for more information.

The most common error is that Meilisearch did not recognize a primary key to identify your documents.

Updated on: 08/08/2023

Was this article helpful?

Share your feedback


Thank you!