Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.37 KB

File metadata and controls

50 lines (38 loc) · 1.37 KB
title OpenSearch Client Setup
description Configure OpenSearch as the search engine for the Generic Data Index bundle.

OpenSearch Client Setup

:::info

Supported OpenSearch versions: 2.7 to 2.19

:::

Configuration requires two steps:

  1. Configure an OpenSearch client via Pimcore OpenSearch Client.
  2. Assign the client to the Generic Data Index bundle.
# 1. OpenSearch client configuration
pimcore_open_search_client:
    clients:
        default:
            hosts: ['https://opensearch:9200']
            password: 'admin'
            username: 'admin'
            ssl_verification: false

# 2. Assign client to Generic Data Index
pimcore_generic_data_index:
    index_service:
        client_params:
            client_name: default

For additional client options, see the Pimcore OpenSearch Client documentation.

Disable Auto-Index Creation

OpenSearch creates indices automatically when storing data to a nonexistent index. This causes incorrect indices and missing aliases. Disable this in your OpenSearch configuration:

action.auto_create_index=false

See #165 and #202 for details.