Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whisperpine/meilisearch-demo
Project to demo meilisearch client.
https://github.com/whisperpine/meilisearch-demo
demo meilisearch
Last synced: 5 days ago
JSON representation
Project to demo meilisearch client.
- Host: GitHub
- URL: https://github.com/whisperpine/meilisearch-demo
- Owner: whisperpine
- License: apache-2.0
- Created: 2023-06-15T17:29:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-24T17:13:37.000Z (4 months ago)
- Last Synced: 2024-11-14T20:09:53.248Z (2 months ago)
- Topics: demo, meilisearch
- Language: Rust
- Homepage:
- Size: 5.74 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
Project to demo [meilisearch](https://github.com/meilisearch/meilisearch) client.
## Prerequisites
[Docker](http://docker.com/) should be installed locally.\
This demo's `Minimum Supported Rust Version` is `1.70`.## Meili Server
Be sure to startup meilisearch server before running client.
```sh
# Startup meilisearch server
docker compose up -d
```After everything, remember to remove the container.
```sh
# Stop meilisearch server and release resources
docker compose down -v
```## Meili Client
```sh
# Send data to meili server
cargo run -- send
# Search with the given query
cargo run -- search [QUERY]
```Besides searching in CLI, you can choose to search in a browser.
As long as meili server has been startup and data has been sent,\
you can just go and search.## Note
Meilisearch server needs time to index data.\
This may take a few seconds in this demo.After the indexing, log message can be found in meili server:\
"A batch of tasks was successfully completed."```sh
# Print meili server logs
docker logs meilisearch
```As a result, you won't get searching result until the indexing is done.