# Search for index field value in text possible?

**URL:** <https://discuss.elastic.co/t/search-for-index-field-value-in-text-possible/237824>\
**Category:** Elasticsearch\
**Created:** [June 19, 2020, 3:06pm UTC](https://discuss.elastic.co/t/search-for-index-field-value-in-text-possible/237824 "2020-06-19T15:06:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Burke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_burke/32/45111_2.png) [@Tom\_Burke](https://discuss.elastic.co/u/Tom_Burke)\
**Post date:** [June 19, 2020, 3:06pm UTC](https://discuss.elastic.co/t/search-for-index-field-value-in-text-possible/237824/1 "2020-06-19T15:06:29Z")

</div>

The problem:  
I have a long list of short strings (1-5 words, mostly) which I want to fuzzy check if they are in a text. The shorts strings are in an index, while the text is part of the query. Is this possible? I managed to do it the other way around, but that would result in several thousand queries for me, because I need to know which strings are inside the text.

I'm currently using an implementation in Java to do this fuzzy compare, but it is rather slow and memory intensive and I thought that maybe using ES could provide a better solution for that.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 20, 2020, 1:17am UTC](https://discuss.elastic.co/t/search-for-index-field-value-in-text-possible/237824/2 "2020-06-20T01:17:52Z")

</div>

Have you looked at [percolator queries](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-percolate-query.html) to see if that might fit your requirements?

---

<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 18, 2020, 1:18am UTC](https://discuss.elastic.co/t/search-for-index-field-value-in-text-possible/237824/3 "2020-07-18T01:18:14Z")

</div>

Closed on July 18, 2020, 1:18am UTC

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