Two more questions about Indices.
1) I take it the index names are generated and not settable from the
client, correct?
2) The java api 'implies' that an index can be applied to multiple
fields at once, give that
index.get("key")
returns a Map. Is this just an artifact of the java driver
implementation, or 1) can you have multifield indices, or 2) the
potential in the future is to have multi field indices?
No, you can choose an index name. If you don't one will be generated for you.
>
> 2) The java api 'implies' that an index can be applied to multiple fields at
> once, give that
>
> index.get("key")
>
> returns a Map. Is this just an artifact of the java driver
> implementation, or 1) can you have multifield indices, or 2) the potential
> in the future is to have multi field indices?
1.) you can have compound indexes (with multiple fields and ordering)
2.) your future is here.
http://www.mongodb.org/display/DOCS/Indexes
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-dev" group.
> To post to this group, send email to mongo...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mongodb-dev?hl=en.
>
>
I was looking at
createIndex, and didn't see any way to access the name.
Thanks again.