robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















read  source  history 


= index() =
----
[[MongoDB Driver Function Reference]]


Creates an index on the collection.


[[[@cG

<collection>.index(<name>, <field>[, ...])

]]]


**Arguments**

[[[@w

|@t0@r0@c0 <collection> | | The target collection. |
| <name> | | Index name |
| <field> | | Index field name. |

]]]



**Example**

[[[@cw

db.employees.index("salary_ix", "salary");

]]]

Creates an index for the //salary// key on the //employees// collection.



----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]