-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple indexes per Entity #269
Comments
Thanks for reporting this issue @B-Galati. I am going to run a quick test on the next couple days and I will keep you posted! 👍 |
Thanks :-) |
Thanks for the wait. The problem comes out of the method private function setClassToIndexMapping()
{
$mapping = [];
foreach ($this->configuration['indices'] as $indexName => $indexDetails) {
$mapping[$indexDetails['class']] = $indexName;
}
$this->classToIndexMapping = $mapping;
} The result using your configuration:
Having more than one index per |
@nunomaduro Thanks for the heads up! |
Hello !
Description
I was trying to index the same entity twice with 2 indices name.
My goal was to leverage instantsearch.js sortBySelector widget.
So I did something like this:
It looks like it was working as expected at 1st glance but no.
Only the last declared indice is pushed to Algolia. The others are not updated anymore: no clear, no update, no import, etc.
Is this something that could be interesting to support within the bundle? Am I going to the wrong direction and this feature should be implemented differently?
At the end, if this is a bad idea, an error message to prevent creating such a config could really nice for DX. Perhaps I missed something in the doc.
Cheers and thanks for this awesome bundle 👍
The text was updated successfully, but these errors were encountered: