More clarifications for indexes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321552 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2011-12-30 10:13:06 +00:00
parent a495f61c3c
commit dff0dee9c8
2 changed files with 7 additions and 3 deletions

View file

@ -48,7 +48,8 @@ public function deleteIndexes($keys) {
<literal>deleteIndexes</literal> database command.
</para>
<para>
Thus, if you named an index "superfast query", you could delete it with:
Thus, if you named an index "superfast query", you could only delete it
with the PHP driver by running:
</para>
<programlisting role="php">
<![CDATA[
@ -87,7 +88,7 @@ $db->command(array("deleteIndexes" => $collection->getName(), "index" => "superf
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the database response.
Returns the generated name of the key if successful, or &null; otherwise.
</para>
</refsect1>

View file

@ -34,7 +34,10 @@
</term>
<listitem>
<para>
Field or fields to use as index.
An array of fields by which to sort the index on. Each element in the
array has as key the field name, and as value either
<literal>1</literal> for ascending sort, or <literal>-1</literal> for
descending sort.
</para>
</listitem>
</varlistentry>