This is a sample code for Customized Search Block in EPiServer Find 9.5

More information is available here