From http://docs.mongodb.org/manual/core/indexes/#sparse-indexes
Any document that is missing the field is not indexed.
--
You can combine the sparse index option with the unique indexes option so that mongod will reject documents that have duplicate values for a field, but that ignore documents that do not have the key.