• Resolved mobetman2

    (@mobetman2)


    Does your plugin work in a multisite environment? I assume the answer is yes because I see people asking multisite questions but I can’t seem to find documentation related to this.

    Specifically, my question is I have a multisite network and want to install separate search on each site. I don’t want a user on Site A to be able to search content from Site B. Is this the default multisite functionality for Elasticpress? Or is it network-wide search only?

    If I have to separately activate Elasticpress on each site, do I need to do anything on the server-side for each site’s search to work?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Felipe Elia

    (@felipeelia)

    Hi!

    Yes, the plugin works on multisite environments! 🙂

    You can activate it for the entire network or per site. If you have it enabled for the entire network, by default it won’t search contents from the other sites. Searching on all sites is possible but requires a small change in the WP_Query.

    One important thing to note is that if you want to give users the chance to set up synonyms or weighting fields per site, you will need to activate the plugin on each site. To make things easier, you can set the credentials to your Elasticsearch server through some constants in the wp-config.php file, like EP_HOST, for example.

    With that said, I’m marking this topic as fixed now because we don’t provide support here. The best place to ask a question, suggest an enhancement, or report a bug is in our GitHub repository: https://github.com/10up/ElasticPress Feel free to ask any further questions there. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘ElasticPress And Multisite’ is closed to new replies.