I have two types stored in ES:
- Photos (fields: photo-id, description, createDateAsLong)
- VisitHistory (username, photo-id - with 30days TTL)
Is it possible to query ES for records of type Photos which photo-id doesn't exists in VisitHistory (for some username value). I mean a query which is equivalent of sql query like this:
SELECT * FROM Photos WHERE photo-id NOT IN (SELECT photo-id FROM VisitHistory WHERE username = 'somefoousername');