#community-help

Query Validation in Client Libraries for TypeSense

TLDR Orion proposes client-side query validation for better frontend feedback, but no resolution provided by Jason yet.

Powered by Struct AI
Feb 25, 2023 (10 months ago)
Orion
Photo of md5-8e802b48c0369226a7b50a22ab6e9e0c
Orion
10:03 PM
Wondering about query validation at the moment, afaik there isn't anything in the client libraries for this. Would this be a feature others would want? My use-case is people running queries with a custom syntax and UI which are translated into TypeSense queries. Validating these is quite hit-and-miss — is there a better way to do this already? If not, is this something that could conceivably be handled by client libraries or the API in the future?
Feb 26, 2023 (9 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
12:40 AM
Could you elaborate on what you mean by “query validation”? Typesense does do validation for bad requests on the server-side…
Orion
Photo of md5-8e802b48c0369226a7b50a22ab6e9e0c
Orion
12:41 AM
^ right, I mean having an option for client-side validation, for things like realtime feedback in frontends