# Aggregate partial words logged by completion suggester

**URL:** <https://discuss.elastic.co/t/aggregate-partial-words-logged-by-completion-suggester/126562>\
**Category:** Elasticsearch\
**Created:** [April 3, 2018, 11:57am UTC](https://discuss.elastic.co/t/aggregate-partial-words-logged-by-completion-suggester/126562 "2018-04-03T11:57:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lakshya\_Aggarwal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lakshya_aggarwal/32/29503_2.png) [@Lakshya\_Aggarwal](https://discuss.elastic.co/u/Lakshya_Aggarwal)\
**Post date:** [April 3, 2018, 11:57am UTC](https://discuss.elastic.co/t/aggregate-partial-words-logged-by-completion-suggester/126562/1 "2018-04-03T11:57:36Z")

</div>

I am using the completion suggester feature of Elasticsearch. It logs the search keyword every time user enters a key irrespective of it being the complete word or only a partial word. Is there any functionality to group all these log entries of partial words with the actual word user was searching for.  
For example:

373.262.733.395 - - [21/Jun/2013:07:19:47] "GET /search\_suggest/di HTTP/1.1" 200 184  
373.262.733.395 - - [21/Jun/2013:07:19:47] "GET /search\_suggest/d HTTP/1.1" 200 193  
373.262.733.395 - - [21/Jun/2013:07:19:47] "GET /search\_suggest/dig HTTP/1.1" 200 184  
373.262.733.395 - - [21/Jun/2013:07:19:48] "GET /search\_suggest/digi HTTP/1.1" 200 175  
373.262.733.395 - - [21/Jun/2013:07:19:48] "GET /search\_suggest/digit HTTP/1.1" 200 189

This is a snapshot of log entries. Now I just want to output "digit" as the grouping result for the given. Other entries like "di", "d", "dig" etc should be irrelevant.

Is there any existing solution for this? Perhaps in Logstash.

---

<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:** [May 1, 2018, 11:58am UTC](https://discuss.elastic.co/t/aggregate-partial-words-logged-by-completion-suggester/126562/2 "2018-05-01T11:58:09Z")

</div>

Closed on May 1, 2018, 11:58am UTC

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