Skip to content

Commit

Permalink
fix(default-search-plugin): Fix typo in option searchStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisvigoureux committed Jul 21, 2023
1 parent 0feddd8 commit 17b0fa1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Options which configure the behaviour of the DefaultSearchPlugin
interface DefaultSearchPluginInitOptions {
indexStockStatus?: boolean;
bufferUpdates?: boolean;
searchStategy?: SearchStrategy;
searchStrategy?: SearchStrategy;
}
```
## Members
Expand All @@ -49,7 +49,7 @@ Collections, as the buffering allows better control over when these expensive jo
and also performs optimizations to minimize the amount of work that needs to be performed by
the worker.{{< /member-description >}}

### searchStategy
### searchStrategy

{{< member-info kind="property" type="SearchStrategy" default="undefined" since="1.6.0" >}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export class FulltextSearchService {
* Sets the SearchStrategy appropriate to th configured database type.
*/
private setSearchStrategy() {
if (this.options.searchStategy) {
this._searchStrategy = this.options.searchStategy;
if (this.options.searchStrategy) {
this._searchStrategy = this.options.searchStrategy;
} else {
switch (this.connection.rawConnection.options.type) {
case 'mysql':
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/plugin/default-search-plugin/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export interface DefaultSearchPluginInitOptions {
* @since 1.6.0
* @default undefined
*/
searchStategy?: SearchStrategy;
searchStrategy?: SearchStrategy;
}

/**
Expand Down

0 comments on commit 17b0fa1

Please sign in to comment.