Is it possible to fetch a subset of documents of IndexA so that the documents are presented in IndexB too? "Presented in indexB too" means that document.fieldA value of indexA is the same as document.fieldA value of indexB. Or even better, if I can compare by several fields values.
For example,
if IndexA contains 2 documents: [{"name":"John", "isManager": true},{"name":"Tim","isManager":false}]
and IndexB contains 1 document:[{"name":"John", "isManager": false}]
I want to be able to search over IndexA and get only "John" document because it also presented in IndexB. Even more, if possible, I'd prefer to get nothing because even John is not exactly the same - it is not marked as "isManager" in indexB.
I'm pretty sure it is not possible to do what I want but asking to be completely sure.
Also is it possible to do this across types in the same index instead of across indices - so that IndexA and IndexB become typeA and typeB?
Thanks in advance for answering.