#community-help

Discussing Typesense's Pre-defined Window Size

TLDR bnfd inquired about word appearance within certain tokens. Kishore Nallan explained Typesense has a fixed window size, unconfigurable due to necessary optimizations.

Powered by Struct AI
3
19mo
Solved
Join the chat
Feb 21, 2022 (19 months ago)
bnfd
Photo of md5-ca6495d5be926db80e09aabf066f4b8b
bnfd
12:56 AM
To rephrase: word1 appears within n tokens from word2
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:27 AM
This is not possible. Typesense has a pre-defined window size of 10 within which we look for query matches to identify the best matched text segment. It's not possible to make this window configurable as a number of optimizations depend on it.
bnfd
Photo of md5-ca6495d5be926db80e09aabf066f4b8b
bnfd
11:35 AM
Thanks