#community-help

Narrowing Search Focus in Typesense to First 5 Characters

TLDR Laura wanted to limit search to first 5 characters of an input in Typesense. Jason clarified it must be done client-side before querying Typesense.

Powered by Struct AI

1

Sep 13, 2022 (15 months ago)
Laura
Photo of md5-f61100ea0482e8bded56c339cacf09d4
Laura
03:03 PM
Hi there ! Does anybody know if it is possible to type (example) 10 numbers and focus the search only on the 5 first digits ? So ignore the last 5 ?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
03:08 PM
Not within Typesense, so you would have to do it on the client-side before sending the query to Typesense. You’d only send the first 5 characters the user types in

1