Skip to content

Commit

Permalink
Update types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishi Raj Jain authored Dec 2, 2023
1 parent 8bf596a commit f775845
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/orama/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,11 @@ export type SearchParams<T extends AnyOrama, ResultDocument = TypedDocument<T>>
* between the term and the searchable property.
*/
tolerance?: number
/**
* A flag to enable prefix search for tolerance(s) greater than 0.
* The default value is true
*/
prefixSearch?: boolean
/**
* The BM25 parameters to use.
*
Expand Down Expand Up @@ -964,4 +969,4 @@ export type OramaPlugin = {
afterRemoveMultiple?: <T extends AnyOrama>(orama: T, ids: string[]) => SyncOrAsyncValue
beforeUpdateMultiple?: <T extends AnyOrama>(orama: T, docs: AnyDocument[]) => SyncOrAsyncValue
afterUpdateMultiple?: <T extends AnyOrama>(orama: T, docs: AnyDocument[]) => SyncOrAsyncValue
}
}

0 comments on commit f775845

Please sign in to comment.