Multiple indexes with the same structure #266
-
Hi I am currently looking into schranz-search to replace our old elasticsearch/opensearch setup. In our current setup we have multiple indexes with the same structure:
I do think it makes sense to keep these indexes for performance reasons. How would you set this up in the schema folder? |
Beta Was this translation helpful? Give feedback.
Answered by
alexander-schranz
Oct 11, 2023
Replies: 1 comment 1 reply
-
There is not yet an out of the box solution for this but you should be able to reuse the field definition of another index to avoid duplicated schema definitions: $indexDeChf = require_once(__DIR__ . '/package_de_chf.php');
return new Index('package_fr_chf', $indexDeChf->fields); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
toooni
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is not yet an out of the box solution for this but you should be able to reuse the field definition of another index to avoid duplicated schema definitions: