3

I have a SaaS web app (multi-tenant) that needs full-text search. The full-text search has to be per-tenant - e.g. we don't want one tenant to be able to pull search results for another tenant's data. This will be for searching text documents.

I can see two ways to implement this in SOLR -

  1. multiple "cores"

  2. separate fields with query attributes

Is there a preferred/recommended way to do multi-tenant full-text search with SOLR?

Advantages/disadvantages of either?

4

1 回答 1

1

我会采用每个租户一个核心的方法。

一些原因,从顶部:

  1. 索引和重新索引可以分离。
  2. 您可以根据租户负载对核心进行分片,从而使您能够更好地扩展大容量客户端。(可能在此使用您的付款模式)
  3. 取消订阅意味着您只需要删除/重命名核心。
  4. 您可以启用需要重新加载核心的客户端特定配置,而无需中断其他服务。
于 2013-08-29T00:47:50.667 回答