I have a simple problem where it would be useful to a query like: get me
everything that matches except if field foo is in results of
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?
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 firstname.lastname@example.org.
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.