ElasticsearchPlugin
This plugin allows your product search to be powered by Elasticsearch - a powerful Open Source search engine. This is a drop-in replacement for the DefaultSearchPlugin which exposes many powerful configuration options enabling your storefront to support a wide range of use-cases such as indexing of custom properties, fine control over search index configuration, and to leverage advanced Elasticsearch features like spacial search.
ElasticSearch v9.1.0 is supported
Important information about versions and ElasticSearch security: The version of ElasticSearch that is deployed, the version of the JS library
Example
Search API Extensions
This plugin extends the default search query of the Shop API, allowing richer querying of your product data.
The SearchResponse type is extended with information about price ranges in the result set:
This SearchResponsePriceData type allows you to query data about the range of prices in the result set.
Example Request & Response
- Implements: OnApplicationBootstrap
init
(options: ElasticsearchOptions) => Type<ElasticsearchPlugin>