# Your search products doesn't exist

**URL:** <https://discuss.elastic.co/t/your-search-products-doesnt-exist/304531>\
**Category:** Elasticsearch\
**Created:** [May 12, 2022, 7:01am UTC](https://discuss.elastic.co/t/your-search-products-doesnt-exist/304531 "2022-05-12T07:01:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RohitBR\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rohitbr_k/32/103666_2.png) [@RohitBR\_K](https://discuss.elastic.co/u/RohitBR_K)\
**Post date:** [May 12, 2022, 7:01am UTC](https://discuss.elastic.co/t/your-search-products-doesnt-exist/304531/1 "2022-05-12T07:01:33Z")

</div>

I need to show your searched products not found if a product doesn't exist in database .Here , am using Elasticsearch for searching , if I type a product not in database it will show some other words matched product but I don't need that instead I want to show that your searched products is not found. Also , I need to show recent search of a user , can I do with Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)\
**Post date:** [May 13, 2022, 7:05am UTC](https://discuss.elastic.co/t/your-search-products-doesnt-exist/304531/2 "2022-05-13T07:05:46Z")

</div>

When you use [term query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-term-query.html) with keyword family, you will get only exact matchs.

For second question, you may store queries using [Slow log](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html) with setting the threshold to 0s.

---

<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:** [June 10, 2022, 7:06am UTC](https://discuss.elastic.co/t/your-search-products-doesnt-exist/304531/3 "2022-06-10T07:06:22Z")

</div>

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