Search autocomplete functionality with Min 3 chars require when enter for filtering

Hi Team,

I have to implement one logic related with search just like google search with icon , when user enter min 3 chars then it should be filtering those. below is the steps which i want to do.

1.Aggregate to get filtered users with user id & name,

2.Min 3 chars required to enter for filtering.


Thanks in advance

Yasmeen