2

Is it possible for single-instance of Solr to use across multiple Applications, Cross Domains? Like multiple CMSs such as Wordpress + Joomla + Drupal. Any searching from anywhere should be showing the Results from all of connected applications.

For example:
If i search a word marketing from the Wordpress Site, it should output the results from Wordpress itself and also the contents from the Joomla and Drupal sites.

Is it possible?

user9517
  • 114,104
  • 20
  • 206
  • 289
夏期劇場
  • 455
  • 2
  • 5
  • 18

2 Answers2

3

Sure, you've just got to make sure the indexing for all the different sites cooperate to provide compatible search data. Exactly how you'll achieve that is a tricky subject that would be better suited to SO (since it's a programming question).

womble
  • 95,029
  • 29
  • 173
  • 228
1

There's nothing in your case that makes it much different from a "single domain" setup. Solr works as REST service, so in order to index content, all you have to do is provide access from different domains. For bulk import (e.g. from a db or csv) we use DataImportHandler.

If you want to facet on domain-bases (narrow down search results by one or more domains using check boxes, after results are already displayed) and you have e.g. an article entity that you want to index, on top of its regular attributes (Solr fields like Body, Author, Date, ...) you should add additional one that would represent its domain.

To setup security (who can see a document) I'd use ManifoldCF, which knows how to work with Solr out-of-the-box.

If you're just starting with Solr I suggest you first go through this tutorial, which is a great starting point to grasp Solr (and general search engine) concepts.

Marko Bonaci
  • 131
  • 4