How to add search engine on custom index

Hi want someone to help me for the above