IDF calculation based on Filter?


(Xudong You) #1

I am going to design a multi-tenancy search platform using Elasticsearch. One option is to share index cross tenant. But the problem is, the documents for different tenants in same index might influence the scoring of results, as the IDF part of the scoring is calculated across all documents in one index.

Is there a way to let ES calculate IDF based on filtered documents? for example, filter documents by tenant, so that the documents of one tenant won't influence score of documents of another tenant.


(Xudong You) #2

Can anyone help?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.