# Search UI: how can I tell \<Facet\> to return all the options , not a subset with -more- button

**URL:** <https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [August 25, 2022, 7:15pm UTC](https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961 "2022-08-25T19:15:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyfam](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tonyfam](https://discuss.elastic.co/u/tonyfam)\
**Post date:** [August 25, 2022, 7:15pm UTC](https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961/1 "2022-08-25T19:15:02Z")

</div>

Hello,  
We have set up a meta engine to webcrawl 12 sites. We use the url-host as the filter for our meta-engine, with 12 possible url-host sources, so that upon search, the user will see the url-host sources for the search results in the facet list. I have made a customFacetView to pass into because we want to show a corresponding display name instead of the url-host. This works well. However, we do want to sort this list so that a particular bunch of websites show first in the list.

Note that when the total facet options returned are 5 or less, or the user has clicked -more-, this works well, because I can sort on all the options.  
BUT if the options are more than 5, before the user clicks -more-, I only get back 5 at a time ordered by number of results, so I can't sort.

Is there a way to disable the -more- on this list? I can't see a way to do it. Or a better way for me to think about sorting this list. Thank you for any advice.

---

<div class="post-metadata">

**Author:** ![joemcelroy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joemcelroy/32/103757_2.png) [@joemcelroy](https://discuss.elastic.co/u/joemcelroy)\
**Post date:** [August 25, 2022, 7:25pm UTC](https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961/2 "2022-08-25T19:25:37Z")

</div>

hey @tonyfam

You can increase the number of options shown before its hidden within the more view by using the `show` prop.

```auto
<Facet field="hosts" show={100} label="Hosts" />

```

> **[Facet | Elastic docs](https://docs.elastic.co/search-ui/api/react/components/facet)**
>
> A look at the future of Elastic's documentation

---

<div class="post-metadata">

**Author:** ![tonyfam](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tonyfam](https://discuss.elastic.co/u/tonyfam)\
**Post date:** [August 25, 2022, 7:45pm UTC](https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961/3 "2022-08-25T19:45:53Z")

</div>

Thank you so much! Worked perfectly for us.

---

<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:** [September 22, 2022, 7:46pm UTC](https://discuss.elastic.co/t/search-ui-how-can-i-tell-facet-to-return-all-the-options-not-a-subset-with-more-button/312961/4 "2022-09-22T19:46:22Z")

</div>

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