How to show dynamic Product types(only custom types) on search result page

Hi

I want to add Filters on search result page.

It will be Custom product types filters.

But it will show dynamically according to the search term filled by user.

Here is example-

https://www.awesomescreenshot.com/video/8726844?key=c71eef40365e8b86b568ad9eac464269

I don’t want to use third party app.

Is it possible with custom code only?

If yes please suggest how can I do this.

Thanks