Replica search is not respecting the search field of zoekt_enabled_namespace

Summary

For big namespaces we will be going to search with replica. But searching with replica is not respecting the goolean field search on the zoekt_enabled_namespace.

Steps to reproduce

  • Set up Zoekt for a namespace.
  • Enable the FF zoekt_search_with_replica.
  • Set the search field in the zoekt_enabled_namespace to false
  • Now perform a group level search in this namespace. It is still searching with Zoekt

What is the current bug behavior?

When the search is false for a zoekt_enabled_namespace the group-level search is still searching with Zoekt

What is the expected correct behavior?

When the search is false for a zoekt_enabled_namespace the group-level search should not use Zoekt

Relevant logs and/or screenshots

Possible fixes