note 111888 added to mongocollection.ensureindex
| From: | mcuadros at gmail dot com | Date: | Tue, 09 Apr 2013 10:39:08 +0000 |
| Subject: | note 111888 added to mongocollection.ensureindex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-194402@lists.php.net to get a copy of this message | ||
Ensuring a text index, needed by text search command.
<?php
$collection->ensureIndex(
array(
'title' => 'text',
'desc' => 'text',
),
array(
'name' => 'ExampleTextIndex',
'weights' => array(
'title' => 100,
'desc' => 30,
)
)
);
----
Server IP: 69.147.83.199
Probable Submitter: 217.125.39.11
----
Manual Page -- http://php.net/manual/en/mongocollection.ensureindex.php
Edit -- https://master.php.net/note/edit/111888
Del: integrated -- https://master.php.net/note/delete/111888/integrated
Del: useless -- https://master.php.net/note/delete/111888/useless
Del: bad code -- https://master.php.net/note/delete/111888/bad+code
Del: spam -- https://master.php.net/note/delete/111888/spam
Del: non-english -- https://master.php.net/note/delete/111888/non-english
Del: in docs -- https://master.php.net/note/delete/111888/in+docs
Del: other reasons-- https://master.php.net/note/delete/111888
Reject -- https://master.php.net/note/reject/111888
Search -- https://master.php.net/manage/user-notes.php