Skip to content
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

fix(default-search-plugin): Fix typo in option searchStrategy #2305

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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