# Java api for facet search

**URL:** <https://discuss.elastic.co/t/java-api-for-facet-search/9220>\
**Category:** Elasticsearch\
**Created:** [October 3, 2012, 6:32am UTC](https://discuss.elastic.co/t/java-api-for-facet-search/9220 "2012-10-03T06:32:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yashwantborse](https://avatars.discourse-cdn.com/v4/letter/y/90ced4/32.png) [@yashwantborse](https://discuss.elastic.co/u/yashwantborse)\
**Post date:** [October 3, 2012, 6:32am UTC](https://discuss.elastic.co/t/java-api-for-facet-search/9220/1 "2012-10-03T06:32:55Z")

</div>

hello,

```
 I am trying to implement faceted search using java API. I index the whole xml document in the form of key and value pair. I want to search the particular Field eg author then it will gives me the all authors with their respective counts in a facet manner .please help me.

```

I have read the [http://www.elasticsearch.org/guide](http://www.elasticsearch.org/guide).

---

<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, 3:10am UTC](https://discuss.elastic.co/t/java-api-for-facet-search/9220/2 "2017-07-06T03:10:27Z")

</div>


