Skip to content

Instantly share code, notes, and snippets.

@smilesrg
Created February 3, 2014 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smilesrg/8792810 to your computer and use it in GitHub Desktop.
Save smilesrg/8792810 to your computer and use it in GitHub Desktop.
> db.user_posts.runCommand( "text" , { search: "сердце",project:{"user":1, "posts.$.post":1,_id:0},limit: 3 } )
{
"queryDebugString" : "сердц||||||",
"language" : "russian",
"results" : [
{
"score" : 0.625,
"obj" : {
"posts" : [
{
},
{
},
{
}
],
"user" : DBRef("user", ObjectId("52f0078e49472530148b456e"))
}
}
],
"stats" : {
"nscanned" : 1,
"nscannedObjects" : 0,
"n" : 1,
"nfound" : 1,
"timeMicros" : 96
},
"ok" : 1
}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment