# How to get all worlds which goes after "search word"

**URL:** <https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579>\
**Category:** Elasticsearch\
**Created:** [October 19, 2020, 4:04pm UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579 "2020-10-19T16:04:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tfe2012](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tfe2012](https://discuss.elastic.co/u/tfe2012)\
**Post date:** [October 19, 2020, 4:04pm UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/1 "2020-10-19T16:04:54Z")

</div>

Hi, for example, I have three documents like:

```auto
{
 "description": "Small red fox"
}

{
 "description": "I see blue fox"
}

{
 "description": "I see small orange fox"
}

```

Is it possible to get all words which go after word: "small".

I expect to get ["red", "orange"]

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 19, 2020, 7:07pm UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/2 "2020-10-19T19:07:41Z")

</div>

May be highlighting could help?

---

<div class="post-metadata">

**Author:** ![tfe2012](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tfe2012](https://discuss.elastic.co/u/tfe2012)\
**Post date:** [October 20, 2020, 9:04am UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/3 "2020-10-20T09:04:01Z")

</div>

> [@dadoonet](#):
>
> highlighting

Like I understand highlighting it will highlight only matched word, but not next word after matched word.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 20, 2020, 11:28am UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/4 "2020-10-20T11:28:23Z")

</div>

Yes but also with some content before and after. Then you can do some text editing to get what you are looking after.

---

<div class="post-metadata">

**Author:** ![tfe2012](https://avatars.discourse-cdn.com/v4/letter/t/49beb7/32.png) [@tfe2012](https://discuss.elastic.co/u/tfe2012)\
**Post date:** [October 20, 2020, 12:16pm UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/5 "2020-10-20T12:16:12Z")

</div>

> [@dadoonet](#):
>
> Yes but also with some content before and after. Then you can do some text editing to get what you are looking after.

Ok, I got an idea, thx

---

<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:** [November 17, 2020, 12:16pm UTC](https://discuss.elastic.co/t/how-to-get-all-worlds-which-goes-after-search-word/252579/6 "2020-11-17T12:16:14Z")

</div>

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