doc: Update examples usages

This commit is contained in:
Clément Renault 2019-01-10 21:12:42 +01:00
parent 05fd7e87ec
commit f7561f8552
No known key found for this signature in database
GPG Key ID: 0151CDAB43460DAE

View File

@ -49,14 +49,12 @@ MeiliDB runs with an index like most search engines.
So to test the library you can create one by indexing a simple csv file.
```bash
cargo run --release --example create-database -- test.mdb misc/kaggle.csv
cargo run --release --example create-database -- test.mdb misc/kaggle.csv --schema schema-example.toml --stop-words misc/fr.stopwords.txt
```
Once the command is executed, the index should be in the `test.mdb` folder.
You are now able to run the `query-database` example and play with MeiliDB.
Once the command is executed, the index should be in the `test.mdb` folder. You are now able to run the `query-database` example and play with MeiliDB.
```bash
cargo run --release --example query-database -- test.mdb
cargo run --release --example query-database -- test.mdb -n 10 id title
```