# Find document by keyword?

**URL:** <https://discuss.huggingface.co/t/find-document-by-keyword/20932>\
**Category:** Beginners\
**Created:** [July 27, 2022, 6:12pm UTC](https://discuss.huggingface.co/t/find-document-by-keyword/20932 "2022-07-27T18:12:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Talha](https://avatars.discourse-cdn.com/v4/letter/t/a5b964/32.png) [@Talha](https://discuss.huggingface.co/u/Talha)\
**Post date:** [July 27, 2022, 6:12pm UTC](https://discuss.huggingface.co/t/find-document-by-keyword/20932/1 "2022-07-27T18:12:39Z")

</div>

I am just looking if such thing exist in hugging face. Let say i have 10 document and a keyword and i want to retrieve the document based on keyword

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](https://discuss.huggingface.co/u/lhoestq)\
**Post date:** [July 28, 2022, 10:14am UTC](https://discuss.huggingface.co/t/find-document-by-keyword/20932/2 "2022-07-28T10:14:37Z")

</div>

Hi ! You can use 🤗Datasets with ElasticSearch to retrieve documents based on keywords: [Search index](https://huggingface.co/docs/datasets/faiss_es#elasticsearch)
