ruflin/Elastica — Issue #138: ElasticSearch and Doctrine Extensions translatable
Author: jorji
Created: 2012-02-22 15:09:53+00:00
State: open

Hi,
I am using Doctrine Extensions Translatable and Elastic Search (FOQElasticaBundle) on Symfony2

So for it worked well for default locale, but when i try to insert translation it bumps into an error:

```
ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=2): [91, 93]]

Elastica_Exception_Response: ElasticSearchParseException[Failed to derive xcontent from (offset=0, length=2): [91, 93]] (uncaught exception) at /var/www/site.com/Symfony/vendor/elastica/lib/Elastica/Transport/Http.php line 103
```

second locale is en:

```
$article = $em->getRepository('WebsiteSharedBundle:News')->find(1);
$article->setTitle('News 1 in EN');
$article->setContent('News 1 in EN');
$article->setTranslatableLocale('en_us');
$em->persist($article);
$em->flush();
```
I have posted this error in FOQElasticaBundle ...Any help is much appreciated.