Skip to main content

How to define index prefixes in Gally?

· One min read
Stephan Hochdörfer
Head of IT Business Operations

Gally is our preferred searchandising solution for our projects. It is MACH ready and perfectly designed for Composable Commerce use-cases. But how flexible is Gally?

A recent project sparked an interesting question: Is it possible to use a single OpenSearch cluster for multiple environments, such as test, staging, and production instances, instead of deploying a separate instance for each setup.

Fortunately, the answer is yes.

To achieve this, you can define an index prefix in the config/packages/gally.yaml configuration file like so:

gally:
indices_settings:
prefix: test_

Alternatively, you can utilize the new backoffice functionality in Gally 2.2 to define index prefixes. To do so, follow these steps:

  • Go to the Settings page.
  • Navigate to Configurations > Index.
  • In the Index prefix field, enter your preferred prefix.

Gally Backoffice Configuration page

This approach is particularly beneficial for smaller setups, as it allows you to manage just one OpenSearch instance, streamlining your searchandising infrastructure.