completed fulltext index migration
Some checks failed
Go / build (push) Has been cancelled

This commit is contained in:
2025-10-01 17:24:50 +01:00
parent 86ac7b7897
commit 02333b74ae
8 changed files with 808 additions and 180 deletions

View File

@@ -71,7 +71,12 @@ func TokenHashes(content []byte) [][]byte {
}
break
}
_ = start
// If we didn't consume any rune for a word, advance by one rune to avoid stalling
if i == start {
_, size2 := utf8DecodeRuneInString(s[i:])
i += size2
continue
}
if len(runes) >= 2 {
w := string(runes)
// Exclude 64-char hex strings