mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-05 04:28:55 +01:00
Inform the users that documents must have an id in there documents
This commit is contained in:
parent
90d64d257f
commit
a43f99c600
@ -40,13 +40,12 @@ All of that on a 39$/month machine with 4cores.
|
||||
You can feed the engine with your CSV (comma-seperated, yes) data like this:
|
||||
|
||||
```bash
|
||||
printf "name,age\nhello,32\nkiki,24\n" | http POST 127.0.0.1:9700/documents content-type:text/csv
|
||||
printf "id,name,age\n1,hello,32\n2,kiki,24\n" | http POST 127.0.0.1:9700/documents content-type:text/csv
|
||||
```
|
||||
|
||||
Here ids will be automatically generated as UUID v4 if they doesn't exist in some or every documents.
|
||||
|
||||
Note that it also support JSON and JSON streaming, you can send them to the engine by using
|
||||
the `content-type:application/json` and `content-type:application/x-ndjson` headers respectively.
|
||||
Don't forget to specify the `id` of the documents. Also Note that it also support JSON and
|
||||
JSON streaming, you can send them to the engine by using the `content-type:application/json`
|
||||
and `content-type:application/x-ndjson` headers respectively.
|
||||
|
||||
### Querying the engine via the website
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user