I think you can achieve that using the Preindexed geoshape query. The bounding boxes need to exist in an index with the geo_shape type, and then you can create a search on your users index with a bool filter that combines your different boxes.
e.g.
I have 2 disjoint(w/o common locations) areas with 5M requests inside each (as in the image above )
Area1, 5M requests and 200k unique usernames
Area2 , 5M requests and 300k unique usernames
And intersect (by username ) of two areas must return 150 unique usernames which appear in both areas.
If I understand Preindexed geoshape query can only return intersect locations.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.