Created
May 15, 2020 15:08
-
-
Save Johnetordoff/1187125d23e7c28fb7b13e6933c0496f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query = { | |
"query": { | |
"term": {"user_id": "7vx6e"} | |
}, | |
"aggs": { | |
"view_timeframe": { | |
"filter": { | |
"range": { | |
"timestamp": { | |
"gte": "2020-05-15", | |
"lte": "2020-05-15" | |
} | |
} | |
}, | |
"aggs": { | |
"preprints": { | |
"terms": { | |
"field": "sloan_id", | |
"size": 5000 | |
} | |
} | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment