#community-help

Resolving Typesense Snag in Docker

TLDR Daniel had an issue with Typesense in Docker, losing access to the multi_search page. Jason suggested stopping the Docker container and checking for any running Typesense instances. The problem was ultimately solved when Daniel realized their Docker data had not been persisted, hence the collection was missing.

Powered by Struct AI
Aug 20, 2022 (16 months ago)
Daniel
Photo of md5-e2351af23a1bb70795da09fa3b369b10
Daniel
08:14 PM
hiyo. I've been following the instantsearch guide and am hitting a snag I can't wrap my head around (attached). Any pointers as to where I might look?

Background
• Running typesense in docker. Getting ok through /health . Tests with api key working as expected.
• Updated the example from the walkthrough with my queryBy and indexName and my api key. Have Validated that these are correct/accessible.
• Started over again to make sure I ran through every option correctly.
The only deviation from the guide I made (as far as I can tell) was that I had to update <script src="./src/app.js"></script> to <script type="module" src="./src/app.js"></script> in index.html to stop parcel to stop complaining about the import statement in app.js

Any ideas?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:08 PM
Could you stop the Docker container and then check if there's already an instance of Typesense running using ps?
09:08
Jason
09:08 PM
For eg running as a homebrew service
09:21
Jason
09:21 PM
It's likely that the indexing script wrote to that existing instance of Typesense, and the browser is connecting to the Docker instance
09:21
Jason
09:21 PM
I just had this happen to me yesterday!
Daniel
Photo of md5-e2351af23a1bb70795da09fa3b369b10
Daniel
09:44 PM
Thanks Jason! I'm only using a docker instance (just doing some local development on a Windows machine). but I'll check it out in case I missed something. Interestingly when I try to access the multi_search page in any way I get a 404
Aug 21, 2022 (16 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:28 PM
(multi_search is POST request btw)
10:28
Jason
10:28 PM
In any case, could you do a GET /collections to ensure that the collection exists?
Aug 24, 2022 (16 months ago)
Daniel
Photo of md5-e2351af23a1bb70795da09fa3b369b10
Daniel
11:05 AM
Thanks Jason, I ended up figuring it out before I spotted this reply. I hadn't persisted my data in docker, so there was no collection...
11:05
Daniel
11:05 AM
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
02:08 PM
Ahh! 😅

Typesense

Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI

Indexed 3015 threads (79% resolved)

Join Our Community

Similar Threads

Moving from Algolia to Typesense: Questions and Answers

Juan sought advice from Kishore Nallan about moving from Algolia to Typesense, handling MultiSearch, setting parameters, checking imported documents, and a specific syntax query.

1

22
22mo

Discussing Search API Limitations and Solutions

Sidharth had problems with search API response limitations and sorting issues. Kishore Nallan suggested multi_search query and provided links for an updated version. After installation, some timeout and performance issues were encountered, partially resolved by adjusting client timeout values.

1

45
14mo

Trouble with DocSearch Scraper and Pipenv Across Multiple OSs

James ran into errors when trying to build Typesense DocSearch Scraper from scratch, and believes it’s because of a bad Pipfile.lock. Jason attempted to replicate the error, and spent hours trying to isolate the issue but ultimately fixed the problem and copied his bash history for future reference. The conversation touches briefly on the subject of using a virtual machine for testing.

7

161
10mo

Troubleshooting Typesense API Analytics Query Suggestions

Md was confused about implementing Typesense's Analytics Query Suggestions and experienced issues with collections returning no hits. Assistance from Kishore Nallan eventually led to the identification that analytics had to be enabled. They also discussed tracking duplicate and empty queries, resulting in Md creating a Github issue.

3

27
3mo

Typesense Capabilities and Troubleshooting Queries

A had issues with refinement lists and analytics in Typesense. Jason provided a possible solution and recommended the analytics widget. They clarified import size limits and helped identify a filter issue in A's query. Upgrade options are in Typesense's roadmap.

4

32
35mo