Skip to content

Instantly share code, notes, and snippets.

{
"content": [
{
"description": "The solo chorister singing the opening verse of Once in Royal David's City from the Chapel of King's College, Cambridge, marks the beginning of Christmas for millions of people around the world. Carols from King's tells the Christmas story through readings from the King James Bible and poems by Rainer Maria Rilke, William Austin and Laurie Lee. The world-famous King's College Choir, under the direction of Stephen Cleobury, sings carols including Ding Dong Merrily on High, Away in a Manger, The Holly and the Ivy, God Rest Ye Merry Gentlemen, We Three Kings, In the Bleak Midwinter, Silent Night and Hark! The Herald Angels Sing.",
"id": "td4ds",
"image": "http://images.atlasapi.org/pa/webANXcarolsatkings.jpg",
"specialization": "tv",
"title": "Carols from King's",
"type": "item"
}
{
"content": [
{
"id": "td4ds",
"type": "item"
}
]
}
{
"content": [
{
"description": "The solo chorister singing the opening verse of Once in Royal David's City from the Chapel of King's College, Cambridge, marks the beginning of Christmas for millions of people around the world. Carols from King's tells the Christmas story through readings from the King James Bible and poems by Rainer Maria Rilke, William Austin and Laurie Lee. The world-famous King's College Choir, under the direction of Stephen Cleobury, sings carols including Ding Dong Merrily on High, Away in a Manger, The Holly and the Ivy, God Rest Ye Merry Gentlemen, We Three Kings, In the Bleak Midwinter, Silent Night and Hark! The Herald Angels Sing.",
"id": "td4ds",
"image": "http://images.atlasapi.org/path/to/image.jpg",
"specialization": "tv",
"title": "Carols from King's",
"type": "item"
}
{
"content": [
{
"id": "td4ds",
"locations": [
{
"actual_availability_start": "2012-12-24T19:30:00Z",
"availability_end": "2012-12-31T19:29:00Z",
"availability_start": "2012-12-24T19:30:00Z",
"available": true,
{
"suggestions": [
{
"content": {
"id": "tmgqf",
"type": "episode"
},
"id": "9059ad43116144d1ac3daa3c47b0db06",
"reason": {
"description": "Editorial pick",
@tfm
tfm / addindex.js
Last active December 11, 2015 21:29
db.myCollection.ensureIndex(
{ myTextField: "text", myOtherTextField: "text" },
{ name: "my_fts_index" }
);
{
"queryDebugString" : "hoob||||||",
"language" : "english",
"results" : [
{
"score" : 0.5714285714285714,
"obj" : {
"_id" : "http://pressassociation.com/episodes/191530"
}
},
@tfm
tfm / query.java
Last active December 11, 2015 21:29
DBObject command = BasicDBObjectBuilder
.start("text", "myCollection")
.append("search", query.getTerm())
.get();
CommandResult result = db.command(command);
BasicDBList results = (BasicDBList) result.get("results");
for(Object o : results) {
DBObject dbo = (DBObject) ((DBObject) o).get("obj");
@Configuration
public class MyConfiguration {
@Bean
public MyBean myBean() {
return new DefaultMyBean();
}
}
{
"schedule": [
{
"channel_key": "bbcone",
"channel_title": "BBC One London",
"channel_uri": "http://www.bbc.co.uk/services/bbcone/london",
"items": [
{
"aliases": [
"http://bbc.co.uk/i/b01sftv1/",