Get documents matching type 1 and not in type 2

maybe I miss something but what about the IDs query https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-ids-query.html