#community-help

Issue with Wildcard Feature v0.25 on Cloud Service

TLDR James experienced server crashes while using the wildcard feature on v0.25. Kishore Nallan identified the issue, proposed a fix, and guided James on how to locate the build output.

Powered by Struct AI
+11
23
7mo
Solved
Join the chat
Feb 03, 2023 (7 months ago)
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
01:42 PM
I am using v0.25 on the cloud service (support installed a nightly upon request). I am testing the new facet_by wildcard feature.

I can get all facets with a catchall wildcard "". But if I use a prefixed wildcard "_facet", I do not get any results, and it seems the server side process crashes (xhr requests is abruptly closed and a subsequent "Uncaught (in promise) Error: Network Error" in the console).
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:15 PM
I just got an alert for that crash, sorry about that. Can you paste the exact query you made here?
02:16
Kishore Nallan
02:16 PM
Also we only support looking up on prefixes so foo_.* will work.
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
02:37 PM
so that would match fields like foo_anything, foo_something
02:37
James
02:37 PM
search query is: {
"q": "",
"query_by": "make,model,title,year,city,province,ownerUsername,listingMode",
"query_by_weights": "1,2,2,2,3,3,2,5",
"facet_by": "*_facet",
"sort_by": [
"year:desc",
"make:desc",
"model:desc"
]
}
02:38
James
02:38 PM
i realize sort_by should be a string... but that doesnt cause a crash by itself...
02:50
James
02:50 PM
ok even with reduced query getting crash: {
"q": "test",
"queryby": "title",
"facet_by": "facet
.*"
}
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:55 PM
Ok I'll check and get back to you.
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
03:22 PM
thank you. let me know if i can help.
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
03:40 PM
I've identified the issue. Will fix and have a build with a fix.
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
03:40 PM
thank you very much.
Feb 06, 2023 (7 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:43 PM
James I've a fix: how do you deploy Typesense? I can share a build and you can test it out.
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
02:43 PM
i was not able to build on RHEL last time i tried so i just got support to deploy a new version...
02:44
James
02:44 PM
i was able to get the build to work on a VM with ubuntu, but didnt run it...
02:44
James
02:44 PM
after i run the build, where is the dist/executable?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:47 PM
I can share a link to the executable, that is fine?
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
02:47 PM
no i can run it, where can i find the build output?
02:48
James
02:48 PM
what branch?
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:48 PM
v0.25 build output will be in build-Linux directory.
02:48
Kishore Nallan
02:48 PM
I presume you are using the docker-build.sh script?
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
02:48 PM
yes
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:49 PM
Then yes, build-Linux
James
Photo of md5-30d4fe895016bc91ebf1879acf690bab
James
02:49 PM
thank you, will let you know.
+11