Host static website with Elasticsearch autocomplete feature

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!

Yes, its possible. You can use completion suggester for your purpose. Refer here to know more about it.