I have a simple problem where it would be useful to a query like: get me everything that matches <query1> except if field foo is in results of <query2>.
The simple solution is to first do query2, fetch the foo field for all the results (potentially thousands), stuff it in some hash and generate a gigantic set with all the values of the foo field and turn that into a bool filter with a lot of term queries in the not that gets added to query1. Since I need to support paging through the results, I can't get away with simply tossing deduplicating the result set in memory. Is there a more elegant way to do this in elasticsearch? Jilles -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b0567016-730c-4531-bf8a-84eb50e4579b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
