3 releases (breaking)

new 0.3.0 Apr 18, 2024
0.2.0 Oct 14, 2023
0.1.0 Sep 8, 2023

#21 in #tantivy

Download history 62/week @ 2024-01-04 9/week @ 2024-01-11 5/week @ 2024-01-25 280/week @ 2024-02-01 4/week @ 2024-02-15 23/week @ 2024-02-22 25/week @ 2024-02-29 191/week @ 2024-03-07 8/week @ 2024-03-14 9/week @ 2024-03-21 35/week @ 2024-03-28 16/week @ 2024-04-04

71 downloads per month
Used in 3 crates (via izihawa-tantivy)

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.4–1MB
~24K SLoC