# ElasticSearch with SonataAdminBundle

**URL:** <https://discuss.elastic.co/t/elasticsearch-with-sonataadminbundle/130818>\
**Category:** Elasticsearch\
**Created:** [May 7, 2018, 11:06am UTC](https://discuss.elastic.co/t/elasticsearch-with-sonataadminbundle/130818 "2018-05-07T11:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdelilah](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@abdelilah](https://discuss.elastic.co/u/abdelilah)\
**Post date:** [May 7, 2018, 11:06am UTC](https://discuss.elastic.co/t/elasticsearch-with-sonataadminbundle/130818/1 "2018-05-07T11:06:47Z")

</div>

Hello, I need to integrate Elasticsearch with the datagrieds of SonataAdminBundle, I downloaded sonata-project/admin-search-bundle, now i get an error when I want to execute this command line "php bin/console fos:elastica:populate" , this is the error :  
Content-Type header [application/x-www-form-urlencoded] is not supported.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [May 8, 2018, 1:12am UTC](https://discuss.elastic.co/t/elasticsearch-with-sonataadminbundle/130818/2 "2018-05-08T01:12:10Z")

</div>

As of version 6.0, Elasticsearch has a [strict content-type policy](https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests) which can not be changed.

You need to ask the developer of this third-party project to fix this and add support to Elasticsearch 6.x

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 5, 2018, 1:12am UTC](https://discuss.elastic.co/t/elasticsearch-with-sonataadminbundle/130818/3 "2018-06-05T01:12:11Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
