Created
July 12, 2018 21:01
-
-
Save relwell/0db9f6be62f7c80772839794a2d8a1ef 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 { | |
| aggBuckets(params:{ | |
| agg: "facility_states" | |
| }) { | |
| aggs { | |
| name | |
| docCountErrorUpperBound | |
| sumDocOtherCount | |
| buckets { | |
| key | |
| docCount | |
| } | |
| } | |
| } | |
| search(params:{ | |
| q: "hela" | |
| pageSize: 5 | |
| sorts:["average_rating desc"] | |
| aggFilters: [{ | |
| field:"phase", | |
| values: ["Early Phase 1", "Phase 1"] | |
| }, { | |
| field:"browse_condition_mesh_terms", | |
| values: ["Brain Neoplasms", "Breast Neoplasms"] | |
| }, { | |
| field:"overall_status", | |
| values: ["Recruiting"] | |
| }] | |
| }){ | |
| recordsTotal | |
| aggs { | |
| name | |
| docCountErrorUpperBound | |
| sumDocOtherCount | |
| buckets { | |
| key | |
| docCount | |
| } | |
| } | |
| data { | |
| nctId:field(name:"nct_id") | |
| averageRating:field(name:"average_rating") | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment