Closed QUzair closed 2 years ago
I can't answer your question specifically but it looks like the docs on NPM have much better information for what you're trying to do: https://npm.io/package/flexsearch.
You cant apply weight/boost actually. But you can apply your own weight logic when getting back results grouped by field.
Here it is also true that only one request with a big limit
and default zero offset
can be used and nothing else, right?
Cannot rely on FlexSearch pagination if doing ranking outside of it... so maybe limit=1000
and see how everything performs and that's it? I also need this feature and sorting by dates as well, will test all of this now... but please clarify if you can @ts-thomas, thank you
I can't seem to find a way to add 'weights' to fields in index for mdx documents. Preferably i would want page title to be top result over the word occurance in another page.
Mongodb example: https://docs.mongodb.com/manual/tutorial/control-results-of-text-search/
Or am i misunderstanding these fields?
e.g
Would much appreciate the help! @ts-thomas