# Is Fuzzy sentence search in elasticsearch based on edit distance of words?

**URL:** <https://discuss.elastic.co/t/is-fuzzy-sentence-search-in-elasticsearch-based-on-edit-distance-of-words/315464>\
**Category:** Elasticsearch\
**Created:** [September 29, 2022, 1:57pm UTC](https://discuss.elastic.co/t/is-fuzzy-sentence-search-in-elasticsearch-based-on-edit-distance-of-words/315464 "2022-09-29T13:57:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapnil3597](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnil3597/32/111448_2.png) [@swapnil3597](https://discuss.elastic.co/u/swapnil3597)\
**Post date:** [September 29, 2022, 1:57pm UTC](https://discuss.elastic.co/t/is-fuzzy-sentence-search-in-elasticsearch-based-on-edit-distance-of-words/315464/1 "2022-09-29T13:57:19Z")

</div>

For a given index I have added documents like:

```auto
[
{"expression": "tell me something about elasticsearch"},
{"expression": "this is a new feature for elasticsearch"},
{"expression": "tell me something about kibana"},
# ... and so on
]

```

Now, I want to query Elasticsearch in a such a that for given input expression: `"tell me something on elasticsearch"`. It must give out:

```auto
{"expression": "tell me something about elasticsearch"},
{"expression": "tell me something about kibana"}

```

**Since it this case edit distance w.r.t. to `words` (not character level) is less in this case.**

Can we perform such a query on elasticsearch?

---

<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:** [October 27, 2022, 1:57pm UTC](https://discuss.elastic.co/t/is-fuzzy-sentence-search-in-elasticsearch-based-on-edit-distance-of-words/315464/2 "2022-10-27T13:57:26Z")

</div>

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