.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "KNIFE\-SEARCH" "1" "April 2011" "Chef 0.10.0" "Chef Manual" . .SH "NAME" \fBknife\-search\fR \- Find objects on a Chef Server by query . .SH "SYNOPSIS" \fBknife\fR \fBsearch INDEX QUERY\fR \fI(options)\fR . .TP \fB\-a\fR, \fB\-\-attribute ATTR\fR Show only one attribute . .TP \fB\-i\fR, \fB\-\-id\-only\fR Show only the ID of matching objects . .TP \fB\-R\fR, \fB\-\-rows INT\fR The number of rows to return . .TP \fB\-r\fR, \fB\-\-run\-list\fR Show only the run list . .TP \fB\-o\fR, \fB\-\-sort SORT\fR The order to sort the results in . .TP \fB\-b\fR, \fB\-\-start ROW\fR The row to start returning results at . .TP \fB\-m\fR, \fB\-\-medium\fR Display medium sized output when searching nodes using the default summary format . .TP \fB\-l\fR, \fB\-\-long\fR Display long output when searching nodes using the default summary format . .SH "DESCRIPTION" Search indexes are a feature of the Chef Server and the search sub\-command allows querying any of the available indexes using SOLR query syntax\. The following data types are indexed for search: * \fInode\fR * \fIrole\fR * \fIenvironment\fR * \fIdata bag\fR . .SH "SYNTAX" . .SH "EXAMPLES" . .SH "SEE ALSO" \fBknife\-ssh\fR(1) \fIhttp://wiki\.opscode\.com/display/chef/Attributes\fR . .SH "AUTHOR" Chef was written by Adam Jacob \fIadam@opscode\.com\fR with many contributions from the community\. . .SH "DOCUMENTATION" This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\. . .SH "CHEF" Knife is distributed with Chef\. \fIhttp://wiki\.opscode\.com/display/chef/Home\fR