4 releases (2 breaking)

0.3.0 Apr 12, 2024
0.2.0 Sep 1, 2023
0.1.1 Jun 23, 2023
0.1.0 Jun 9, 2023

#362 in Database implementations

Download history 52512/week @ 2024-10-27 62795/week @ 2024-11-03 60646/week @ 2024-11-10 63527/week @ 2024-11-17 43778/week @ 2024-11-24 62885/week @ 2024-12-01 51898/week @ 2024-12-08 52771/week @ 2024-12-15 20064/week @ 2024-12-22 26899/week @ 2024-12-29 56030/week @ 2025-01-05 63080/week @ 2025-01-12 55645/week @ 2025-01-19 72530/week @ 2025-01-26 81793/week @ 2025-02-02 77068/week @ 2025-02-09

289,012 downloads per month
Used in 65 crates (8 directly)

MIT license

7KB
117 lines

#Tokenizer-API

An API to interface a tokenizer with tantivy.

The API will be kept stable in order to not break support for existing tokenizers.


lib.rs:

Tokenizer are in charge of chopping text into a stream of tokens ready for indexing. This is an seperate crate from tantivy, so implementors don't need to update for each new tantivy version.

To add support for a tokenizer, implement the Tokenizer trait. Checkout the tantivy repo for some examples.

Dependencies

~0.3–0.9MB
~20K SLoC