# Host static website with Elasticsearch autocomplete feature

**URL:** https://discuss.elastic.co/t/host-static-website-with-elasticsearch-autocomplete-feature/84369
**Category:** Elasticsearch
**Created:** [May 3, 2017, 8:06am UTC](https://discuss.elastic.co/t/host-static-website-with-elasticsearch-autocomplete-feature/84369 "2017-05-03T08:06:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![saintbiz](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@saintbiz](https://discuss.elastic.co/u/saintbiz)
#### Post date: [May 3, 2017, 8:06am UTC](https://discuss.elastic.co/t/host-static-website-with-elasticsearch-autocomplete-feature/84369/1 "2017-05-03T08:06:42Z")

</div>

Hi,  
Currently, I am building a website with Autocomplete plugin. The data is coming from a JSON file. This JSON file has millions of product information. Using the plugin is not feasible.  
I am thinking to convert the JSON file to Elasticsearch, and pull the data from Elasticsearch with autocomplete feature. Is it possible?  
Where can I find the reference document? Is there an example that I can refer to?

thanks!

---

<div class="post-metadata">

### Author: ![Abhilash\_Bolla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abhilash_bolla/32/26840_2.png) [@Abhilash\_Bolla](https://discuss.elastic.co/u/Abhilash_Bolla)
#### Post date: [May 4, 2017, 10:52am UTC](https://discuss.elastic.co/t/host-static-website-with-elasticsearch-autocomplete-feature/84369/2 "2017-05-04T10:52:36Z")

</div>

Yes, its possible. You can use completion suggester for your purpose. Refer [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html) to know more about it.

---

<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: [June 1, 2017, 11:01am UTC](https://discuss.elastic.co/t/host-static-website-with-elasticsearch-autocomplete-feature/84369/3 "2017-06-01T11:01:58Z")

</div>

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