2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00
2026-09-07 00:26:49 +02:00

Search with tantivy

This demo takes the base_data.yml, indexes it and provides a search in this data.

Index

Create an index directory and then execute the indexing:

mkdir index
cargo run -- index

Afterwards you can search in the index. It will return a score and the result as JSON.

cargo run -- search "jazz music"
[3.699133] {"description":["Jazzy music with some rainy atmosphere"],"id":["0004"],"title":["I am currently listening to Jazz"]}

S
Description
No description provided
Readme
38 KiB
Languages
Rust 100%