#community-help

Triggering `refresh` Function in Typesense Adapter

TLDR em1nos figured out how to trigger the refresh function in the Typesense adapter, while Jason provided additional information on cache management within the adapter.

Powered by Struct AI

2

1

4
30mo
Solved
Join the chat
Jul 17, 2021 (30 months ago)
em1nos
Photo of md5-f33ae8b829901656b655c985c894be3a
em1nos
02:44 PM
is there a way to trigger this refresh function, without all this boilerplate code / custom connection.
I am using the typesense adapter.
https://www.algolia.com/doc/guides/building-search-ui/going-further/improve-performance/vue/#caching
02:55
em1nos
02:55 PM
I figured it out.
02:56
em1nos
02:56 PM
_this_.$refs.instantSearch.instantSearchInstance.refresh()

2

Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:51 PM
em1nos FYI: there’s also another cache within the Typesense adapter…

See cacheSearchResultsForSeconds parameter in the readme file

1