# \[App Search\] - Facet Adjustment

**URL:** https://discuss.elastic.co/t/app-search-facet-adjustment/336953
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [June 27, 2023, 8:21am UTC](https://discuss.elastic.co/t/app-search-facet-adjustment/336953 "2023-06-27T08:21:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)
#### Post date: [June 27, 2023, 8:21am UTC](https://discuss.elastic.co/t/app-search-facet-adjustment/336953/1 "2023-06-27T08:21:41Z")

</div>

Hello, I want to ask, how can I adjust the Facet to keep the selection of user instead reset it every single time user search new thing?

It seems like supposed when user already filter by for example SERVICE item type and it shows me 31,300 documents within the range of SERVICE.

 ![Screenshot 2023-06-27 at 4.16.22 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/f/7f4cec0f4ada8055224956473dcf3662475189d7.png)

However, once user query anything, it seems like the Facet has reset the user selection before and just display everything, instead focusing in displaying within SERVICE filter which is 31,300 documents.

 ![Screenshot 2023-06-27 at 4.16.37 PM](https://us1.discourse-cdn.com/elastic/original/3X/4/b/4bba5d415224a11e4e774cb2a7dc315d2b66444e.png)

Is there any adjustment I need to make in the code to fix the Facet display ?

 ![Screenshot 2023-06-27 at 3.45.36 PM](https://us1.discourse-cdn.com/elastic/original/3X/f/2/f2054e55fbe523200f40e3d78032c6fa4dde7ac0.png)

Thank you.

---

<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: [June 27, 2023, 4:08pm UTC](https://discuss.elastic.co/t/app-search-facet-adjustment/336953/2 "2023-06-27T16:08:51Z")

</div>

By default, we reset the filters when the query is changed. You can disable this via `shouldClearFilters={false}` on the SearchBox

```ts
<SearchBox shouldClearFilters={false} />

```

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

Joe

---

<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 25, 2023, 4:09pm UTC](https://discuss.elastic.co/t/app-search-facet-adjustment/336953/3 "2023-07-25T16:09:02Z")

</div>

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