Skip to content

Conversation

@bastihilger
Copy link
Contributor

@bastihilger bastihilger commented Jul 31, 2024

In Algolia it is common to have one "Application" with different indexes for different environments. These indexes can be prefixed, like

  • "local_pages", "production_pages", "staging_pages"
  • "local_products", "production_products", "staging_products"

and so on.

Laravel scout has an easy solution for this by adding a "prefix" option in the scout config file.

My PR adds a similar solution by having an option in the Statamic search config file in the drivers.algolia array.

Closes statamic/ideas#1202

@jasonvarga
Copy link
Member

jasonvarga commented Jul 31, 2024

I believe this other PR is attempting to solve the same problem: #10435

We can leave this open and we will review both and decide the more appropriate option. Thanks!

@bastihilger
Copy link
Contributor Author

@jasonvarga I did not see that PR. I'd be happy if one of the two got merged ;-)

@jasonvarga
Copy link
Member

On the other PR a good point was made that this sort of functionality would not necessarily be needed only by Algolia. #10435 will address it in a driver-agnostic way. We can continue over there.

@jasonvarga jasonvarga closed this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option for Algolia search index prefix

2 participants