Alternative to terms lookup?

Hello,

We use elasticsearch 2.4.6.

We have an index that contains around 33,000,000 documents.

Users (customers) can search in this common/shared set of document, but some (many) of these documents are forbidden for each customer.

We tried to use filtering by "terms lookup" (each customer has a dedicated set of forbidden document IDs) but performance are terrible when the number of document to filter out is large (some thousands)

What would be the best alternative to "terms lookup" filtering?

Obviously, we cannot have a dedicated index per customer (we have a lot of customer)

Best regards,

Olivier.

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