#community-help

Improving Query Results and Docker Issue with Typesense

TLDR Draisy struggled with retrieving query results and a docker command not working with a newer version of typesense. Jason suggested getting Typesense logs and upgrading cluster, but problems persist.

Powered by Struct AI

2

Jul 12, 2023 (2 months ago)
Draisy
Photo of md5-d90ab1862cf9b9abe15f89881fccd378
Draisy
08:55 PM
Hey folks, I'm running into a similar issue as raised in this thread, where I'd like to be able to retrieve query results anywhere in the query_by field, not just prefix. I've enabled infix:true in the schema field, and I'm passing infix: 'always' in the search params, but not getting the results I expect. For example, I would expect a field with a string value of ABC1234 to be returned as a possible result for a query of 123 or 1234, etc.

As per that thread, I tried testing locally with the typesense:0.25.0.rct46 image, but that container exits immediately after I run it. When I try with older versions, the container spins up and runs as expected. Is this tag still up and running, or should I test with a different one? The command I'm testing with is docker run -p 8108:8108 -v/tmp/data:/data typesense/typesense:0.25.0.rct46 --data-dir /data --api-key=<API_KEY> . The same command works when I try it with other tags, such as typesense/typesense:0.22.2
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
09:09 PM
Draisy Could you post the Typesense logs when you run that docker command?
09:09
Jason
09:09 PM
Also may I know the host OS you’re running Docker on?
Draisy
Photo of md5-d90ab1862cf9b9abe15f89881fccd378
Draisy
10:13 PM
There are no logs. Running docker ps -a , I can see the container exited with status 139, but docker logs <container_id> returns empty
10:15
Draisy
10:15 PM
Pretty old one, Catalina 10.15.7
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:16 PM
Hmm I wonder if that could be the reason… Because it works fine for me on my M1 running Monterey… In any case, we can also upgrade your Typesense cloud cluster to this build from our side if you’d like
Draisy
Photo of md5-d90ab1862cf9b9abe15f89881fccd378
Draisy
10:20 PM
I'll have an M2 laptop incoming in about a week or so that I can use for retesting this. But yes, let's go ahead and upgrade the cluster and try that
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:21 PM
I’ve queued up an upgrade. You’ll get an email notification once it’s done in about 5 - 10 minutes. Once it’s done, could you give it a shot?

1

Draisy
Photo of md5-d90ab1862cf9b9abe15f89881fccd378
Draisy
10:29 PM
Will the update apply retroactively to documents that have already been indexed? Or only for new documents created since?
10:30
Draisy
10:30 PM
Either way, neither is returning desired results
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
10:30 PM
It will apply retroactively… :(
10:31
Jason
10:31 PM
Ok, could you open the network tab in the browser dev console, then do a search, look for a request to multi_search, copy-as-curl and then DM it to me?

1