# Java API and aggregations result problem

**URL:** <https://discuss.elastic.co/t/java-api-and-aggregations-result-problem/19834>\
**Category:** Elasticsearch\
**Created:** [September 17, 2014, 8:51am UTC](https://discuss.elastic.co/t/java-api-and-aggregations-result-problem/19834 "2014-09-17T08:51:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpouget](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@lpouget](https://discuss.elastic.co/u/lpouget)\
**Post date:** [September 17, 2014, 8:51am UTC](https://discuss.elastic.co/t/java-api-and-aggregations-result-problem/19834/1 "2014-09-17T08:51:28Z")

</div>

I have a problem with Java API and aggregations result  
Serializer produce this error:

No serializer found for class org.elasticsearch.common.text.StringText and  
no properties discovered to create BeanSerializer

for this query : [http://pastebin.com/Ph8unhsA](http://pastebin.com/Ph8unhsA)  
with this response : [http://pastebin.com/u37hRd8r](http://pastebin.com/u37hRd8r)

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b79fe5b8-bd32-4c7c-ac49-b22ace252b78%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b79fe5b8-bd32-4c7c-ac49-b22ace252b78%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:01am UTC](https://discuss.elastic.co/t/java-api-and-aggregations-result-problem/19834/2 "2017-07-06T01:01:41Z")

</div>


