By query, I mean a formal database query, which is addressed in formal terms to a specific data set. Queries are expressed in formal query languages such as SQL or XQuery. A search, on the other hand, is a string typed into a search box. … A query will give you exactly the result you ask for.
For More Information Please Refer: https://everypageispageone.com/2011/07/13/search-vs-query/