<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
                    http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

    <embedded-document name="Integrated\Bundle\ContentBundle\Document\Content\Embedded\Storage">

        <field fieldName="identifier" type="string" index="true" />
        <field fieldName="pathname" type="string" />
        <field fieldName="filesystems" type="collection" />

        <embed-one
            field="metadata"
            target-document="Integrated\Bundle\ContentBundle\Document\Content\Embedded\Storage\Metadata"
        />

    </embedded-document>

</doctrine-mongo-mapping>
<doctrine-mongo-mapping xmlns="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping"
                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        xsi:schemaLocation="http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping
                    http://doctrine-project.org/schemas/odm/doctrine-mongo-mapping.xsd">

    <embedded-document name="Integrated\Bundle\ContentBundle\Document\Content\Embedded\Storage">

        <field fieldName="identifier" type="string" />
        <field fieldName="pathname" type="string" />
        <field fieldName="filesystems" type="collection" />

        <embed-one
            field="metadata"
            target-document="Integrated\Bundle\ContentBundle\Document\Content\Embedded\Storage\Metadata"
        />

    </embedded-document>

</doctrine-mongo-mapping>
Remove index on identifier field
Remove index on identifier field
