I'm seeing a strange issue with search results fro...
# community-help
m
I'm seeing a strange issue with search results from Typesense.
curl <https://druid.struct.ai/v1/search> -XPOST -d '{"q": "sketches"}' -s | jq | less
-- the first result seems to have nothing to do with the search term. I'm using
0.25.0.rc41
.
j
Could you share all the other search params being sent to Typesense?
And also the schema?
m
Copy code
2023-07-07T15:43:08.639Z	INFO	search/typesense.go:366	Search Query	{"url": "<http://localhost:10001/multi_search>", "query": {"collection":"threads","exclude_fields":"chats,embedding","filter_by":"org_id := 5M3c && xsr_ids := [3L4f5, 3L4f3]","highlight_fields":"subject,summary,chats","per_page":64,"q":"sketches","query_by":"subject,summary,chats,embedding","sort_by":"updated_at:desc"}}
Schema:
Copy code
threadsCol := `{"name": "threads", "fields": [
	{"name": "subject", "type": "string"},
	{"name": "summary", "type": "string"},
	{"name": "chats", "type": "string"},
	{"name": ".*", "type": "auto"},
	{"name": "embedding",
	 "type": "float[]",
	 "embed": {
	   "from": ["subject", "summary", "chats"],
	   "model_config": {
	     "model_name": "ts/e5-small"
	   }
	 }
	}
	]}`
oh shoot. I see a "sort_by": "updated_at:desc" in there -- when this should be sorted by "ranking"
arrr... let me check that up.
👍 1