#community-help

Issue with Updated Javascript Dependencies in Typesense

TLDR em1nos faced an error after updating javascript dependencies. Jason suggested using 2.4.1-1 and to move 'query_by' to 'collectionSpecificSearchParameters' which solved the issue and was identified as a bug.

Powered by Struct AI

1

Mar 31, 2022 (21 months ago)
em1nos
Photo of md5-f33ae8b829901656b655c985c894be3a
em1nos
05:11 PM
I updated some js deps today, and now I'm getting Error: 400 - No search fields specified for the query . InstantSearchAdapter. Am I missing something obvious that has changed in the last few months or so?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:14 PM
There were no backward incompatible changes recently
em1nos
Photo of md5-f33ae8b829901656b655c985c894be3a
em1nos
05:17 PM
hmm, yea, I checked that ...
05:20
em1nos
05:20 PM
It's the "query_by" that missing here that's the problem, right?
05:23
em1nos
05:23 PM
05:23
em1nos
05:23 PM
I don't know where to look for clues really since it worked just fine before the upgrades
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:02 PM
Oh hmm, could you try using 2.4.1-1 just to be sure?
06:05
Jason
06:05 PM
Could you also try move query_by to collectionSpecificSearchParameters to see if that fixes the issue at least temporarily?
em1nos
Photo of md5-f33ae8b829901656b655c985c894be3a
em1nos
06:36 PM
2.4.1-1 - same error
06:37
em1nos
06:37 PM
moving query_by to collectionSpecificSearchParameters solved the problem
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
07:48 PM
Then this sounds like a bug. Could you open a Github issue for this mentioning the previous version where it worked?

Typesense

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

Indexed 3011 threads (79% resolved)

Join Our Community

Similar Threads

Troubleshooting Typesense-Instantsearch Adapter Version Compatibility

Steve noticed JavaScript errors when using a specific typesense-instantsearch adapter with Instantsearch.js. Jason provided support but a solution is yet to be identified.

12
18mo

Typesense Sorting Query and Bug Report

michtio is new to Typesense and is querying sorting implementation. Jason shares resources and suggests use of specific adapters. However, michtio shares a bug found when applying a filter on Typesense. Jason asks for a GitHub issue to be opened for the bug.

14
18mo

Issue with Typesense Instantsearch and Upgrading to React 18

Carl experienced problems updating packages for a project. VIVEK suggested disabling reactStrictMode, while Jason insisted on downgrading to React 17 due to compatibility issues. Carl eventually found a workaround.

6
17mo
Solved

Resolving Issues with 'React-InstantSearch'

robert was having trouble merging results from different collections using `react-instantsearch` and was facing issues with undefined highlight results. After much discussion, Jason provided a solution using `collectionSpecificSearchParameters` and `highlight_full_fields` to solve the problem.

3

28
17mo
Solved

Implementing State Export Feature Using Typesense InstantSearch.js on Node.js Backend

Kyle needed help passing search state to backend for implementing an "Export" feature, while using Typesense InstantSearch. Jason provided multiple solutions including advice on using Typesense InstantSearch adapter. The issue was resolved after some iteration.

1

10
28mo
Solved