Merge pull request #143 from ndudnicz/examples-movies

doc: add a new +19k movies example dataset
This commit is contained in:
Clément Renault 2019-04-15 10:11:38 +02:00 committed by GitHub
commit 3056b351fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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