Corrected the search functionality.

Search is performed client-side as an experimental feature. This results
in a slightly different behavior since search criteria is applied with
no regards to where it occurs in the result. In comparison, the RESTful
server-side search expects the result to begin with the search criteria.