mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 10:37:41 +08:00
doc: add a new +19k movies example dataset
This commit is contained in:
parent
ee7a570b2f
commit
52fca57114
@ -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.
|
So to test the library you can create one by indexing a simple csv file.
|
||||||
|
|
||||||
```bash
|
```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.
|
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
|
```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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
1
examples/movies/README.md
Normal file
1
examples/movies/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
_datas in movies.csv are from https://www.themoviedb.org/_
|
19700
examples/movies/movies.csv
Normal file
19700
examples/movies/movies.csv
Normal file
File diff suppressed because it is too large
Load Diff
21
examples/movies/schema-movies.toml
Normal file
21
examples/movies/schema-movies.toml
Normal 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
|
Loading…
Reference in New Issue
Block a user