title: Mapping definition has unsupported parameters: [store : true]
body: <p>I defined my index <code>ads</code> as follows:</p>
  
  <pre><code>fos_elastica:
      clients:
           default: { host: %elastica_host%, port: %elastica_port% }         
      indexes:
            ads:
              types:                        
                  brand:
                      mappings:
                          name:
                              type: string
                              boost: 5
                          slug:
                              type: string
                              boost: 4
                          date : ~
                          isPublished: ~
                          user:
                              type: nested
                              properties: 
                                  username: ~
                                  email: ~
                      persistence:
                          driver: orm
                          model: Minn\AdsBundle\Entity\Brend
                          elastica_to_model_transformer:
                              service: minn_ads.transformers_elastica.brand
                          provider: ~
                          listener:
                              immediate: ~
                          finder: ~
  </code></pre>
  
  <p><strong>FYI:</strong> 1. This is how <code>Brend</code> is linked with <code>User</code> with @ManyToOne</p>
  
  <pre><code>/**
   * @ORM\ManyToOne(targetEntity="Minn\UserBundle\Entity\User")
   * @ORM\JoinColumn(nullable=false)
   */
  private $user;
  </code></pre>
  
  <p><strong>FYI:</strong> 2. I am using the <code>dev-master</code> branches for  FOSElasticaBundle and Elastica. For elasticsearch, I am using 2.1.1.</p>
  
  <p>A populate command <code>php app/console fos:elastica:populate</code> always returns this error:</p>
  
  <p><strong>[Elastica\Exception\ResponseException]<br>
    {"root_cause":[{"type":"mapper_parsing_exception","reason":"Mapping definition for [user] has unsupported parameters:  [store : true]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [brand]:<br>
     Mapping definition for [user] has unsupported parameters:  [store : true]","caused_by":{"type":"mapper_parsing_exception","reason":"Mapping definition for [user] has unsupported parameters:  [store : true]"}}</strong> </p>
  
  <p>I checked the <code>app/logs/dev.log</code>, I found that the generated mapping for the index <code>ads</code> has an extra parameter <code>"store":true</code>. You can check that down:</p>
  
  <p><strong>[2015-12-20 21:28:21] elastica.DEBUG: logging Request {"path":"ads/","method":"PUT","data":{"mappings":{"brand":{"properties":{"name":{"type":"string","boost":5,"store":true},"slug":{"type":"string","boost":4,"store":true},"date":{"type":"string","store":true},"isPublished":{"type":"string","store":true},"user":{"type":"nested","properties":{"username":{"type":"string","store":true},"email":{"type":"string","store":true}},"store":true}},"dynamic_date_formats":[],"_meta":{"model":"Minn\AdsBundle\Entity\Brend"}}}},"query":[],"connection":{"config":{"headers":[]},"host":"127.0.0.1","port":9200,"logger":"fos_elastica.logger","enabled":true}} []</strong></p>
  
  <p>Below is the mapping with the extra <code>"store": true</code>. Is there any idea on how to configure FOSElasticaBundle to get a mapping without this extra line with <code>"store": true</code> ?</p>
  
  <pre><code>{
      "mappings": {
          "brand": {
              "properties": {
                  "name": {
                      "type": "string",
                      "boost": 5,
                      "store": true
                  },
                  "slug": {
                      "type": "string",
                      "boost": 4,
                      "store": true
                  },
                  "date": {
                      "type": "string",
                      "store": true
                  },
                  "isPublished": {
                      "type": "string",
                      "store": true
                  },
                  "user": {
                      "type": "nested",
                      "properties": {
                          "username": {
                              "type": "string",
                              "store": true
                          },
                          "email": {
                              "type": "string",
                              "store": true
                          }
                      },
                      "store": true  # extra line! If deleted, it will work!
                  }
              }
          }
      }
  }
  </code></pre>