Skip to main content

DefaultSearchPluginInitOptions

Options which configure the behaviour of the DefaultSearchPlugin

Signature

indexStockStatus

propertyboolean
Default:false.

If set to true, the stock status of a ProductVariant (inStock: Boolean) will be exposed in the search query results. Enabling this option on an existing Vendure installation will require a DB migration/synchronization.

bufferUpdates

propertybooleanv1.3.0
Default:false

If set to true, updates to Products, ProductVariants and Collections will not immediately trigger an update to the search index. Instead, all these changes will be buffered and will only be run via a call to the runPendingSearchIndexUpdates mutation in the Admin API.

This is very useful for installations with a large number of ProductVariants and/or Collections, as the buffering allows better control over when these expensive jobs are run, and also performs optimizations to minimize the amount of work that needs to be performed by the worker.

searchStrategy

propertySearchStrategyv1.6.0
Default:undefined

Set a custom search strategy that implements SearchStrategy or extends an existing search strategy such as MysqlSearchStrategy, PostgresSearchStrategy or SqliteSearchStrategy.

Example

Ts
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026ยทEdit this page