VeggieMeat / search_api_elasticsearch

Clone of project at drupal.org/project/search_api_elasticsearch for better CI options than what D.O offers
16 stars 8 forks source link

Multiple sites (mutlisite) in the same index #75

Open VeggieMeat opened 9 years ago

VeggieMeat commented 9 years ago

Original issue: https://www.drupal.org/node/2462445

Posting a patch to allow for multiple sites to be stored in the same index. This patch requires that this sandbox module to be enabled: https://www.drupal.org/sandbox/e2thex/2033065. That sandbox module adds a site hash filter (a field in the elastic index) and this patch allows it to be used for elastic search. So, multiple sites can be stored in the same index without deleting each other's content and a filter can be used in views that will allow searching across all sites in the index or only the current site.