Skip to content

Multiple indexes with the same structure #266

Answered by alexander-schranz
toooni asked this question in Q&A
Discussion options

You must be logged in to vote

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);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@toooni
Comment options

Answer selected by toooni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants