# Autosuggestion using Elasticsearch for huge data content

**URL:** <https://discuss.elastic.co/t/autosuggestion-using-elasticsearch-for-huge-data-content/148745>\
**Category:** Elasticsearch\
**Created:** [September 16, 2018, 7:28pm UTC](https://discuss.elastic.co/t/autosuggestion-using-elasticsearch-for-huge-data-content/148745 "2018-09-16T19:28:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikesh/32/86579_2.png) [@Nikesh](https://discuss.elastic.co/u/Nikesh)\
**Post date:** [September 16, 2018, 7:28pm UTC](https://discuss.elastic.co/t/autosuggestion-using-elasticsearch-for-huge-data-content/148745/1 "2018-09-16T19:28:26Z")

</div>

Hi,  
I am trying to use autosuggestion feature on two fields, "title" and "content".Content field is huge (about 30-40 pages). How do I index this field? My suggestion query works only when data is searched from the very first character. Is there a way to over come this issue?  
Thanks in Advance

---

<div class="post-metadata">

**Author:** ![Jayaram\_Alla](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@Jayaram\_Alla](https://discuss.elastic.co/u/Jayaram_Alla)\
**Post date:** [September 17, 2018, 6:45am UTC](https://discuss.elastic.co/t/autosuggestion-using-elasticsearch-for-huge-data-content/148745/2 "2018-09-17T06:45:17Z")

</div>

I am not an expert so don't take my suggestion for granted.

"My suggestion query works only when data is searched from the very first character" :  
By this do you mean first character of content/title field ?

- do you have any analyser ? if so what is it's tokenizer(i suggest using whitespace if not used).

Or if you mean first character of any word ?

- Then i suggest you look at ngram analyser with fuzziness (It is probably not a very good idea with content field so big as this would increase your index size drastically and fuzziness might make the match documents with less relevance too)

---

<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 15, 2018, 6:45am UTC](https://discuss.elastic.co/t/autosuggestion-using-elasticsearch-for-huge-data-content/148745/3 "2018-10-15T06:45:19Z")

</div>

Closed on October 15, 2018, 6:45am UTC

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