1- Open Central Administrator
2- Go To Operations –> Services on server
3- Select the server you are using for query role.
4- Click on “Office Sharepoint Server Search“.
5- Check the option “Use this server for serving search queries“.
6- Provide credentials and check other settings and click on OK.