Using OpenSearch
1. Create new CMA app
npx create-magento-app@latest magento-with-opensearch
2. Set searchengine to "opensearch" in the configuration section of the config file
module.exports = {
// ...other configurations
configuration: {
searchengine: 'opensearch' // <- set this
}
};
2.1 Configure OpenSearch (optional)
module.exports = {
// ...other configurations
configuration: {
searchengine: 'opensearch',
opensearch: {
// change opensearch image here
image: 'opensearchproject/opensearch:2.13.0',
env: {
// additional environment variables for container
OPENSEARCH_JAVA_OPTS: '-Xms2048m -Xmx4096m'
}
}
}
};
3. Run the application
You need to apply changes by running the start command without -s option.
Last updated
Was this helpful?