-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Add @orama/plugin-pt15 #817
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
minor comments, but lgtm!
|
||
type InternalDocumentID = internalDocumentIDStore.InternalDocumentID; | ||
|
||
export type TreeType = 'AVL' | 'Radix' | 'Bool' | 'Flat' | 'BKD'; |
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.
We should export these from the @orama/orama
package
type InternalDocumentID = internalDocumentIDStore.InternalDocumentID; | ||
|
||
export type TreeType = 'AVL' | 'Radix' | 'Bool' | 'Flat' | 'BKD'; | ||
export type TTree<T = TreeType, N = unknown> = { |
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 one too
node: N; | ||
isArray: boolean; | ||
}; | ||
export type Tree = |
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 one too
vectors: {} | ||
} | ||
} else { | ||
const isArray = /\[/.test(type as string) |
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.
we may want to use .endsWith("[]")
or even type[type.length-1] == ']'
for performance reasons
positionsStorage: PositionsStorage, | ||
prop: string, | ||
internalId: InternalDocumentID, | ||
language: string | undefined, |
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.
I think I started exposing a Optional
type which is basically type Optional<T = unknown> = T | undefined
Implement different index algorithm.