# Faceting on top n results only

**URL:** <https://discuss.elastic.co/t/faceting-on-top-n-results-only/14552>\
**Category:** Elasticsearch\
**Created:** [November 22, 2013, 7:31pm UTC](https://discuss.elastic.co/t/faceting-on-top-n-results-only/14552 "2013-11-22T19:31:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frank\_Maritato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frank_maritato/32/1956_2.png) [@Frank\_Maritato](https://discuss.elastic.co/u/Frank_Maritato)\
**Post date:** [November 22, 2013, 7:31pm UTC](https://discuss.elastic.co/t/faceting-on-top-n-results-only/14552/1 "2013-11-22T19:31:01Z")

</div>

Hi All,

I noticed that this ticket has been sitting around for about a  
year [https://github.com/elasticsearch/elasticsearch/issues/2040](https://github.com/elasticsearch/elasticsearch/issues/2040) and I need  
that functionality too so I implemented it for terms faceting only for now.  
Would some of the devs mind taking a look at the diff for a code review and  
make sure i'm on the right track? If so, I can finish the other facets and  
then do a pull request.

[https://github.com/fmaritato/elasticsearch/compare/issue2040](https://github.com/fmaritato/elasticsearch/compare/issue2040)

Thanks!

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:05am UTC](https://discuss.elastic.co/t/faceting-on-top-n-results-only/14552/2 "2017-07-06T02:05:16Z")

</div>


