Executing requests for completion suggester whenever a new character is entered (Web UI)

Hello,

I have implemented completion suggester in elastic search which is working quite smoothly.

I just have one doubt, it is being executed only when I enter the whole query and run the application.

What I want is that after entering every character it should run the suggester. How should I proceed in such situation ?

Can someone please help ?

Thanks
Siddharth