Skip to content

Instantly share code, notes, and snippets.

@benjdlambert
Created October 8, 2014 12:33
Show Gist options
  • Save benjdlambert/854e51261745f7365b0e to your computer and use it in GitHub Desktop.
Save benjdlambert/854e51261745f7365b0e to your computer and use it in GitHub Desktop.
Content Search Query
{
"project":"earth-uk-index",
"query":{
"and":[
{
"and":[
[
"promo:card-type",
"=",
"photo"
]
]
},
[
"promo:promo-start-utc",
"<",
"2014-10-08T12:27:00.000Z",
"dateTime"
],
[
"promo:promo-end-utc",
">",
"2014-10-08T12:27:00.000Z",
"dateTime"
],
[
"promo:genre-page-selection",
"contains",
"home"
]
]
},
"sort":[
{
"elementPath":"\/promo:card-promo\/promo:promo-details\/promo:promo-start-utc",
"direction":"desc"
}
],
"namespaces":{
"promo":"https:\/\/production.bbc.co.uk\/isite2\/project\/earth-uk-index\/card-promo"
},
"pageSize":1,
"page":1,
"depth":1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment