Search is the procedure that allows users to get any type of information and data that is indexed by the Chef server.
Search is basically a text query that is performed by many locations, for example,
/search/INDEX in the Chef server, within a recipe. These locations can be used to run the search command with Knife with the help of the
search functionality provided in the Management Console or by creating indexes in the API (the Chef server), such as:
searchcommand with knife
A Chef search includes searching for nodes, roles, data bags, and environments.
knife search subcommand triggers a search query to get the stored information indexed on a server.
search query command is ...