FosElastica populate and index <p>I have 2 problems in using fosElastica:</p> <p>1) When I run this command: <code>php bin/console fos:elastica:populate</code>, it makes all mapped field of all indexed docs to null.</p> <pre><code>"hits": [ { "_index": "app", "_type": "article", "_id": "/cms/content/foo", "_score": 1, "_source": { "title": null, "body": null } }, { "_index": "app", "_type": "article", "_id": "/cms/content/bar", "_score": 1, "_source": { "title": null, "body": null } } ] </code></pre> <p>But later if I update a doc manually fields indexed.</p> <p>2) I want to strip html tags but my custom analyzer doesn't work.</p> <p>FosElastica Config:</p> <pre><code>fos_elastica: clients: default: { host: localhost, port: 9200 } indexes: app: settings: index: analysis: analyzer: my_analyzer: type: custom tokenizer: standard char_filter: [html_strip] types: article: mappings: title: ~ body: {analyzer: my_analyzer} persistence: driver: phpcr model: AppBundle\Document\Article provider: ~ listener: ~ finder: ~ </code></pre>