I would like to aggregate documents on some terms, but I only care to know if that term is there for at least 1 document, and absolutely do not care about the count of matching documents.
What would be a good way to implement this? A custom metric bucket? I could easily see a boolean check in a reduce operation.
The advantage over proper counting would be to spare some computations.