-
-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: orama search #1131
feat: orama search #1131
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
09a4351
to
c0287f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fennifith suggested a few small changes. We also need to add Orama to our sponsors list here:
https://playfulprogramming-git-orama-search-oceanbit.vercel.app/join-us
src/views/search/orama.tsx
Outdated
|
||
export async function searchForTerm({ postClient, collectionClient }: SearchContext, query: SearchQuery, signal: AbortSignal) { | ||
// Schema should be passed to `search` method when: | ||
// https://github.com/askorama/oramacloud-client-javascript/pull/35 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was merged. We can change this now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't appear to be working. I'm only seeing this function in the type definitions, and not the version with generics (using the latest version):
search(query: ClientSearchParams, config?: SearchConfig): Promise<Nullable<Results<AnyDocument>>>;
I'll update this comment & the client lib version, but will look into what's happening with the types later. (I don't think it should block this PR)
This PR replaces our in-house Fuse.js powered search with one from Orama to make our results much better.
#sponsored (disclosure to follow soon)
TODOs
string[]
)*
search for all resultsDeployment