Skip to content

Instantly share code, notes, and snippets.

@relwell
Created July 12, 2018 21:01
Show Gist options
  • Select an option

  • Save relwell/0db9f6be62f7c80772839794a2d8a1ef to your computer and use it in GitHub Desktop.

Select an option

Save relwell/0db9f6be62f7c80772839794a2d8a1ef to your computer and use it in GitHub Desktop.
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