Datatable'based search is only applicable if you are using datatable (of course) and only wanna do client side search
Ideally if your goal is like Google Search's search feature, you should have a backend api powered by something like ElasticSearch and a frontend component that utilizes async calls aka AJAX.
Now if you are just making a db search aka db query, then your standard db queries should work.
If you are only searching like 10 static items, then frontend, client side search is probably the most practical. 10 items are nothing. That's easily searchable via JavaScript.