Skip to content

Need synchronous API or at least give what's the sent request on /indexes/[table]/updates #108

Closed
@kokizzu

Description

@kokizzu

Not printing the the requested json makes it harder to debug (I'm using go client btw)

already sent this:

"[{\"id\":20,\"author\":\"Prof. Laury Herzog\",\"title\":\"Aut perferendis accusantium sit voluptatem consequatur.\",\"body\":\"Consequatur accusantium voluptatem sit perferendis aut. Sit perferendis accusantium consequatur aut voluptatem. Perferendis accusantium aut sit voluptatem consequatur. Accusantium sit consequatur aut perferendis voluptatem. Sit accusantium aut perferendis consequatur voluptatem. Perferendis consequatur accusantium sit aut voluptatem. Perferendis sit voluptatem consequatur accusantium aut. Perferendis voluptatem sit aut consequatur accusantium. Voluptatem perferendis sit aut accusantium consequatur.\",\"created\":1606484683456729702}]"

but still got

{"status":"failed","updateId":19,"type":{"name":"DocumentsAddition","number":1},"error":"document id is missing","errorType":"invalid_request_error","errorCode":"missing_document_id","errorLink":"https://docs.meilisearch.com/errors#missing_document_id","duration":0.000806693,"enqueuedAt":"2020-11-27T13:44:43.459032791Z","processedAt":"2020-11-27T13:44:43.462177939Z"}

apparently I was wrongly set the primary key in the past (because I was calling .Documents(space).AddOrReplaceWithPrimaryKey(row, row.Id)) -- because I thought the 3rd parameter is ID of that specific document instead of the primary key column name.

curl -X GET 'http://localhost:7700/indexes/articles'        
{"name":"articles","uid":"articles","createdAt":"2020-11-27T11:47:01.834279018Z","updatedAt":"2020-11-27T13:44:38.401930845Z","primaryKey":"5"}

so I have to drop it first..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions