mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 00:01:00 +00:00
chore: Rename the library "pentium" 🎉
This commit is contained in:
24
README.md
24
README.md
@ -1,27 +1,31 @@
|
||||
# raptor-rs
|
||||
Raptor, the new RISE
|
||||
# pentium
|
||||
|
||||
A search engine based on the [blog posts serie](https://blog.algolia.com/inside-the-algolia-engine-part-1-indexing-vs-search/) of the great Algolia company.
|
||||
|
||||
This is a library, this means that binary are not part of this repository
|
||||
but since I'm still nice I have made some examples for you in the `examples/` folder.
|
||||
|
||||
## Usage
|
||||
|
||||
First you need to generate the index files.
|
||||
Pentium work with an index like most of the search engines.
|
||||
So to test the library you can create one by indexing a simple csv file.
|
||||
|
||||
```bash
|
||||
$ cargo build --release
|
||||
$ time ./target/release/raptor-cli index csv --stop-words stop-words.txt the-csv-file.csv
|
||||
cargo build --release --example csv-indexer
|
||||
time ./target/release/examples/csv-indexer --stop-words misc/en.stopwords.txt misc/kaggle.csv
|
||||
```
|
||||
|
||||
The `stop-words.txt` file here is a simple file that contains one stop word by line.
|
||||
The `en.stopwords.txt` file here is a simple file that contains one stop word by line (e.g. or, and...).
|
||||
|
||||
Once the command finished indexing you will have 3 files that compose the index:
|
||||
- The `xxx.map` represent the fst map.
|
||||
- The `xxx.idx` represent the doc indexes matching the words in the map.
|
||||
- The `xxx.sst` is a file that contains all the fields and the values asociated with it, it is passed to the internal RocksDB.
|
||||
|
||||
Now you can easily use `raptor server console` or `raptor serve http` with the name of the dump. (e.g. relaxed-colden).
|
||||
Now you can easily run the `serve-console` or `serve-http` examples with the name of the dump. (e.g. relaxed-colden).
|
||||
|
||||
```bash
|
||||
$ cargo build --release --default-features --features serve-console
|
||||
$ ./target/release/raptor-cli serve console --stop-words stop-words.txt relaxed-colden
|
||||
cargo build --release --example serve-console
|
||||
./target/release/examples/serve-console relaxed-colden
|
||||
```
|
||||
|
||||
Note: If you have performance issues run the searcher in release mode (i.e. `--release`).
|
||||
|
Reference in New Issue
Block a user