#community-help

Transforming Query String with Vue3-Instasearch

TLDR Ra asked how to modify a search query in real-time. Jason suggested using 'search-function' in vue-instantsearch.

Powered by Struct AI

1

1

1

Jun 30, 2022 (18 months ago)
Ra
Photo of md5-894e524356146cb346abbb1f595710f0
Ra
09:43 PM
Hey everyone!
What is the recommended way to transform a query string on-the-fly as the user types in the search box?

Using vue3-instasearch and the ais-searchbox does not seem to expose any method for this https://www.algolia.com/doc/api-reference/widgets/search-box/vue/ . I found this in the instantsearch.js only https://github.com/typesense/showcase-books-search/blob/9fef28b894c79240aebbd4ff5c4b8e0b06441dc9/src/app.js#L185-L191
Ra
Photo of md5-894e524356146cb346abbb1f595710f0
Ra
09:53 PM
exactly what i was looking for, thanks!

1