mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-02-02 03:38:43 -05:00
9 lines
224 B
C++
9 lines
224 B
C++
#include"tokenizer.h"
|
|
#include "hash.h"
|
|
|
|
void calculate_tokens_hashes(TokenizerResult *tr) {
|
|
for(auto &token : tr->tokens)
|
|
if(token.is_alfanum)
|
|
token.token_hash = hash64Lower_utf8(token.token_start,token.token_len);
|
|
}
|