Allow discriminator fields to be indexed.
Allow discriminator fields to be indexed.

There is no mapping for discriminator fields, but that
doesn't mean it shouldn't be possible to create an index on them.
They're still valid document fields and often times
it makes perfect sense to query on them.

stylehub/mongodb-odm,jmikola/mongodb-odm,solocommand/mongodb-odm,alcaeus/mongodb-odm,hyperunknown/mongodb-odm,Soullivaneuh/mongodb-odm,rubenrua/mongodb-odm,doctrine/mongodb-odm,dunglas/mongodb-odm,notrix/mongodb-odm,Xosofox/mongodb-odm,slawus/mongodb-odm,Bilge/mongodb-odm,malarzm/mongodb-odm,stylehub/mongodb-odm,aheinz-sg/mongodb-odm,alcaeus/mongodb-odm,danizord/mongodb-odm,slawus/mongodb-odm,castarco/mongodb-odm,malarzm/mongodb-odm,slawus/mongodb-odm,marcoleong/mongodb-odm,alicomo/mongodb-odm,Briareos/mongodb-odm,oswaldderiemaecker/mongodb-odm,coudenysj/mongodb-odm,stof/mongodb-odm,doctrine/mongodb-odm,kevinyien/mongodb-odm,ifunny/mongodb-odm,alicomo/mongodb-odm,Tony133/mongodb-odm,waldihuber/mongodb-odm,lyft/mongodb-odm,Ocramius/mongodb-odm,stylehub/mongodb-odm,Bilge/mongodb-odm,Bilge/mongodb-odm