Next.js & FlexSearch with web worker #450
mathieu-cohere
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone 👋🏻
I am using FlexSearch in a small Next.js client, but have been unable to set up workers to function properly.
The library works flawlessly when indexing my documents and searching them if
worker
is not used.However, as soon as I enable
worker: true
I am able to add document to the index, but querying it never returns anything.My current impression, is that my specific Next.js setup is missing something that is preventing the FlexSearch web worker to properly download the
worker.js
and run.Thus, the addAsync ends up just pushing documents to what equates to a
/dev/null
message to a non-existent worker.Are there individuals who have experience with Next.js+FlexSearch with worker who could share some insight on how they got it to work?
Beta Was this translation helpful? Give feedback.
All reactions