this defeats one advantage of having the search done by a server: saving the serving of un-needed files.
however, it does allow the main functionality: finding the content the user wants.
another plus on doing it client-side is that it is much faster to execute, allowing results to be shown as you type, and unlike a server, it can work without an internet connection.
it really depends on how much "stuff" you got to search. if you can send it in a dozen request totalling a couple hundred KB, i'd say go for it.
if it's going to take 5323 files weighing 50MB, you need to use a server.