Improving Documentation for 'cacheSearchResultsForSeconds' Function
TLDR Edson suggested that 'cacheSearchResultsForSeconds' function should be included in official documentation. CaptainCodeman shared insights on using caching mechanisms for improving performance. Jason agreed and provided useful details about client-side and server-side caching options in Typesense.
1
Jan 27, 2022 (23 months ago)
Edson
05:38 PMCaptainCodeman
05:46 PMCaptainCodeman
05:49 PMJason
05:55 PMJason
05:56 PMJason
05:56 PMCaptainCodeman
05:56 PMuse_cache
option as wellCaptainCodeman
06:06 PMJason
06:08 PMCaptainCodeman
06:09 PMJason
06:09 PMJason
06:10 PMCaptainCodeman
06:10 PM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Debugging Search Issue with Typesense Server Caching
Jameshwart reported experiencing caching issues with typesense server, despite the server's default setting of not caching. Through troubleshooting steps with Kishore Nallan, they were able to confirm an issue with the Typesense Javascript client and resolved it by adding `cacheSearchResultsForSeconds: 0` after `apiKey` in the initialisation. Laura also participated in discussion, learning about server and client level caching.
Enhancing Typesense-JS For Improved Cache Management
Jordan requested a way to clear the cache in 'typesense-js' when a new document is added. Jason recommended a work-around and supported Jordan's idea to add a 'clearCache' method. Jordan then submitted a PR for this implementation.
Discussing `use_cache` and `cacheSearchResultsForSeconds` Options
Aljosa wanted a confirmation for a technical issue and Jason suggested to use `use_cache` for both. Proposed updates were given to check if their issue resolves. Aljosa agreed to test out the proposed solution.
Troubleshooting Issues with DocSearch Hits and Scraper Configuration
Rubai encountered issues with search result priorities and ellipsis. Jason helped debug the issue and suggested using different versions of typesense-docsearch.js, updating initialization parameters, and running the scraper on a Linux-based environment. The issues related to hits structure and scraper configuration were resolved.
Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.