Skip to content

Project to demo meilisearch client.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

whisperpine/meilisearch-demo

README

Project to demo meilisearch client.

Prerequisites

Docker 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.

# Startup meilisearch server
docker compose up -d

After everything, remember to remove the container.

# Stop meilisearch server and release resources
docker compose down -v

Meili Client

# 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 http://localhost:7700 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."

# Print meili server logs
docker logs meilisearch

As a result, you won't get searching result until the indexing is done.

About

Project to demo meilisearch client.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Security policy

Stars

Watchers

Forks