Skip to content
Snippets Groups Projects
Commit 20a54aac authored by Benjamin Lee's avatar Benjamin Lee Committed by 🥺
Browse files

factor search tokenization out into a function


This ensures that the tokenization algorithm will remain in sync between
querying, indexing, and deindexing. The existing code had slightly
different behavior for querying, because it did not discard words with
>50 bytes. This was inconsequential, because >50 byte tokens are never
present in the index.

Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
parent 81cd677b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment