note 111891 added to mongodb.command
| From: | mcuadros at gmail dot com | Date: | Tue, 09 Apr 2013 11:13:57 +0000 |
| Subject: | note 111891 added to mongodb.command | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194405@lists.php.net to get a copy of this message | ||
Command of Mongo 2.4 Text Search feature.
<?php
$result = $db->command(
array(
'text' => 'bar', //this is the name of the collection where we are
searching
'search' => 'hotel', //the string to search
'limit' => 5, //the number of results, by default is 1000
'project' => Array( //the fields to retrieve from db
'title' => 1
)
)
);
----
Server IP: 69.147.83.199
Probable Submitter: 217.125.39.11
----
Manual Page -- http://php.net/manual/en/mongodb.command.php
Edit -- https://master.php.net/note/edit/111891
Del: integrated -- https://master.php.net/note/delete/111891/integrated
Del: useless -- https://master.php.net/note/delete/111891/useless
Del: bad code -- https://master.php.net/note/delete/111891/bad+code
Del: spam -- https://master.php.net/note/delete/111891/spam
Del: non-english -- https://master.php.net/note/delete/111891/non-english
Del: in docs -- https://master.php.net/note/delete/111891/in+docs
Del: other reasons-- https://master.php.net/note/delete/111891
Reject -- https://master.php.net/note/reject/111891
Search -- https://master.php.net/manage/user-notes.php