Closed mike-moreau closed 3 months ago
I added a PR for this on Craft 4. https://github.com/studioespresso/craft-scout/pull/304
Not sure if the same issue exists in Craft 5.
Fixed in 4.1.1, will leave this open to make sure I don't forget to the Craft 5 branch
Out for Craft 5 in 5.0.1.
I am running Scout 4.1.0 on Craft 4.9.7 and configuring a Replica Index.
My
/config/scout.php
file looks like this:Based off this merged PR and the documentation, I expected the Replica Indexes to not require criteria, like this example:
However, I get the following error when saving an entry:
If I add criteria to the Replica Indexes config, the error goes away. I'm using
$query->id(0)
to ensure an empty Element Query, but would prefer not to have any criteria at all.Am I misunderstanding the documentation for Replica Indexes or is this a bug perhaps?
STU-167