doc: add a new +19k movies example dataset

This commit is contained in:
Nicolas DUDNICZENKO 2019-04-13 21:11:28 +02:00
parent ee7a570b2f
commit 52fca57114
6 changed files with 19725 additions and 4 deletions

View File

@ -63,12 +63,11 @@ 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 --schema schema-example.toml
cargo run --release --example create-database -- test.mdb examples/movies/movies.csv --schema examples/movies/schema-movies.toml
```
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 -n 10 id title
```
cargo run --release --example query-database -- test.mdb -n 10 id title overview release_date
```

View File

@ -0,0 +1 @@
_datas in movies.csv are from https://www.themoviedb.org/_

19700
examples/movies/movies.csv Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,21 @@
# This schema has been generated ...
# The order in which the attributes are declared is important,
# it specify the attribute xxx...
identifier = "id"
[attributes.id]
stored = true
[attributes.title]
stored = true
indexed = true
[attributes.overview]
stored = true
indexed = true
[attributes.release_date]
stored = true
[attributes.poster]
stored = true