algolia / laravel-scout-settings

DEPRECATED: Use of this repository is deprecated. Please use Scout Extended - https://github.com/algolia/scout-extended instead.
MIT License
23 stars 12 forks source link

forwardToReplicas cannot be set #17

Closed aconital closed 5 years ago

aconital commented 6 years ago

I cannot set "forwardToReplicas":true in my json settings and there is no way to set it from the dashboard. Is there a way to achieve this?

julienbourdeau commented 6 years ago

Currently, everything should be forwarded to replicas but it's not possible to override it. I assume yours aren't. I'll take a look today 👍

aconital commented 6 years ago

Thanks @julienbourdeau. Currently, my replicas don't inherit/get updated when I change settings in the master

julienbourdeau commented 6 years ago

So I had a look, the way it works is that it will export settings for each index and replicas. For example index names and names_replica will have their own resources/algolia-settings/names.json and resources/algolia-settings/names_replica.json containing the entire settings list. The philosophy of this extension is really to export everything to be able to add them to your git.

If you change the settings in the resources/algolia-settings/names.json file, it won't affect the replica, you need to update the other file too.

Could you detail the behavior you would expect?

nunomaduro commented 5 years ago

Thank you for creating this issue.

Unfortunately this repository will not receive any more updates. We should use now Scout Extended.