# Preselect filter during user search by text

**URL:** <https://discuss.elastic.co/t/preselect-filter-during-user-search-by-text/311648>\
**Category:** Elasticsearch\
**Created:** [August 8, 2022, 1:04pm UTC](https://discuss.elastic.co/t/preselect-filter-during-user-search-by-text/311648 "2022-08-08T13:04:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guillaume\_R](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guillaume_r/32/79028_2.png) [@Guillaume\_R](https://discuss.elastic.co/u/Guillaume_R)\
**Post date:** [August 8, 2022, 1:04pm UTC](https://discuss.elastic.co/t/preselect-filter-during-user-search-by-text/311648/1 "2022-08-08T13:04:41Z")

</div>

Hi all,  
I would like to know how to achieve this feature on e-commerce website : the user types "t-shirt woman red" for example. In the result, when I display the filter (using aggregation) I would like to "check" the colour "red" in the filter "Colours" (it could be for a size also .... so it must be dynamic)

Any one can help ?  
Thanks a lot

---

<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 5, 2022, 1:05pm UTC](https://discuss.elastic.co/t/preselect-filter-during-user-search-by-text/311648/2 "2022-09-05T13:05:12Z")

</div>

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