This file contains 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
{ | |
"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" | |
} |
This file contains 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
{ | |
"content": [ | |
{ | |
"id": "td4ds", | |
"type": "item" | |
} | |
] | |
} |
This file contains 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
{ | |
"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" | |
} |
This file contains 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
{ | |
"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, |
This file contains 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
{ | |
"suggestions": [ | |
{ | |
"content": { | |
"id": "tmgqf", | |
"type": "episode" | |
}, | |
"id": "9059ad43116144d1ac3daa3c47b0db06", | |
"reason": { | |
"description": "Editorial pick", |
This file contains 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
db.myCollection.ensureIndex( | |
{ myTextField: "text", myOtherTextField: "text" }, | |
{ name: "my_fts_index" } | |
); |
This file contains 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
{ | |
"queryDebugString" : "hoob||||||", | |
"language" : "english", | |
"results" : [ | |
{ | |
"score" : 0.5714285714285714, | |
"obj" : { | |
"_id" : "http://pressassociation.com/episodes/191530" | |
} | |
}, |
This file contains 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
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"); |
This file contains 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
@Configuration | |
public class MyConfiguration { | |
@Bean | |
public MyBean myBean() { | |
return new DefaultMyBean(); | |
} | |
} |
This file contains 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
{ | |
"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/", |
OlderNewer