Ajax Search Form

Silverstripe Version: SS4.1

Question:

Is it possible to create an ajax search form that doesn’t involve putting a form on the page? I just want to send data to a controller and have it send back search results in json format

Thanks

You can set up a controller to respond to search queries, and add whatever logic you need.

Have a look here for a description of how to set up the routes and controller logic: https://docs.silverstripe.org/en/4/developer_guides/controllers/

OK. So do I bother involving the FulltextSearchable or SearchForm classes? or is it easier just to do it as a direct database search?