svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ deleteindex.xml ensureindex.xml

From: Date: Fri, 30 Dec 2011 10:13:06 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/mongocollection/ deleteindex.xml ensureindex.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-9308@lists.php.net to get a copy of this message
derick Fri, 30 Dec 2011 10:13:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=321552 Log: More clarifications for indexes. Changed paths: U phpdoc/en/trunk/reference/mongo/mongocollection/deleteindex.xml U phpdoc/en/trunk/reference/mongo/mongocollection/ensureindex.xml Modified: phpdoc/en/trunk/reference/mongo/mongocollection/deleteindex.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/deleteindex.xml 2011-12-30 09:20:07 UTC (rev 321551) +++ phpdoc/en/trunk/reference/mongo/mongocollection/deleteindex.xml 2011-12-30 10:13:06 UTC (rev 321552) @@ -48,7 +48,8 @@ <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 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns the database response. + Returns the generated name of the key if successful, or &null; otherwise. </para> </refsect1> Modified: phpdoc/en/trunk/reference/mongo/mongocollection/ensureindex.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/ensureindex.xml 2011-12-30 09:20:07 UTC (rev 321551) +++ phpdoc/en/trunk/reference/mongo/mongocollection/ensureindex.xml 2011-12-30 10:13:06 UTC (rev 321552) @@ -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>

« previous php.doc.cvs (#9308) next »