# Displaying search results with snippets

**URL:** https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065
**Category:** Kibana
**Created:** [July 21, 2017, 7:06am UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065 "2017-07-21T07:06:05Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![antman1p](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@antman1p](https://discuss.elastic.co/u/antman1p)
#### Post date: [July 21, 2017, 7:06am UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065/1 "2017-07-21T07:06:05Z")

</div>

In Kibana, is there a way to display content search results with only the keyword searched and, maybe 20 words before and 20 words after the keyword? Sort of like Google returns a search?

---

<div class="post-metadata">

### Author: ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)
#### Post date: [July 21, 2017, 6:54pm UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065/2 "2017-07-21T18:54:19Z")

</div>

In Advanced Settings you can set `truncate:maxHeight` which will limit the collapsed cell to a certain height.

---

<div class="post-metadata">

### Author: ![antman1p](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@antman1p](https://discuss.elastic.co/u/antman1p)
#### Post date: [July 22, 2017, 2:08am UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065/3 "2017-07-22T02:08:53Z")

</div>

Thank you for that tip, but can you also maybe the highlighted keyword AND 20 or so words before and after the keyword?

---

<div class="post-metadata">

### Author: ![antman1p](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@antman1p](https://discuss.elastic.co/u/antman1p)
#### Post date: [July 22, 2017, 2:13am UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065/4 "2017-07-22T02:13:16Z")

</div>

Basically what is being displayed is the beginning of the content, so when I truncate it, it makes the content view smaller, but if the highlighted keyword isn't at the beginning of the content it doesn't show until you expand the content pane. I'd like to have the keyword and a snippet show up in the content pane after a search.

---

<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: [August 19, 2017, 2:14am UTC](https://discuss.elastic.co/t/displaying-search-results-with-snippets/94065/5 "2017-08-19T02:14:07Z")

</div>

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