help.html revision c23e82b612acd5e947c164114377578116f6d298
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<link rel="icon" href="img/icon.png" type="image/png"/>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<link rel="stylesheet" type="text/css" href="style.css"/>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<link rel="stylesheet" type="text/css" href="print.css" media="print"/>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<link rel="alternate stylesheet" type="text/css" media="all" title="Paper White" href="print.css"/>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington <div id="MastheadLogo"> <h1> OpenGrok </h1> </div>
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence<table cellpadding="0" cellspacing="0" border="0" width="100%">
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence<tr><td valign="top"><br /> </td><td align="left" valign="middle"><br/>
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington <table cellpadding="2" border="0" cellspacing="0">
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence <tr><td align="right"> Full Search (q) </td><td><input class="q" name="q" size="45" value=""/></td></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <tr><td align="right"> Definition (defs) </td><td><input class="q" name="defs" size="25" value=""/></td></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <tr><td align="right"> Symbol (refs) </td><td><input class="q" name="refs" size="25" value=""/></td></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <tr><td align="right"> File Path (path) </td><td><input class="q" name="path" size="25" value=""/></td></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <tr><td align="right"> History (hist) </td><td><input class="q" name="hist" size="25" value=""/></td></tr>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <tr><td></td><td> <input class="submit" type="submit" value=" Search "/> | <input class="submit" onClick="document.sbox.q.value='';document.sbox.defs.value='';document.sbox.refs.value='';document.sbox.path.value='';document.sbox.hist.value='';" type="button" value=" Clear "/></td></tr>
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas GustafssonA Query is a series of clauses. A clause may be prefixed by:
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas Gustafsson<li>a plus (+) or a minus (-) sign, indicating that the clause is required or prohibited respectively; or
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington<li>a term followed by a colon, indicating the field to be searched. This enables one to construct queries which search multiple fields.
e4757e3dafe50ae59f693eec828f68c42c197a70Andreas GustafssonA clause may be either:
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington <li> a term, indicating all the documents that contain this term; or
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <li> a nested query, enclosed in parentheses (). Note that this may be used with a +/- prefix to require any of a set of terms.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonvalid FIELDs are
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson full: Full text search.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson defs: Only finds symbol definitions.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson refs: Only finds symbols.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson path: path of the source file.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington hist: History log comments
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceTo find where setResourceMonitors is defined
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington <a href="search?q=&defs=setResourceMonitors">defs:setResourceMonitors</a>
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid LawrenceTo find files that use sprintf in usr/src/cmd/cmd-inet/usr.sbin/
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence <a href="search?refs=sprintf&path=usr%2Fsrc%2Fcmd%2Fcmd-inet%2Fusr.sbin%2F">refs:sprintf path:usr/src/cmd/cmd-inet/usr.sbin</a>
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonTo find assignments to variable Asign
09ab886382ad9e7149d9b72b4cf9a03ae4a1cddfDavid Lawrence <a href="search?q=%22asign+%3D+%22">"Asign="</a>
a7038d1a0513c8e804937ebc95fc9cb3a46c04f5Mark AndrewsTo find Makefiles where pstack binary is being built
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington <a href="search?q=pstack&path=Makefile">pstack path:Makefile</a>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellingtonto search for phrase "Bill Joy":
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington <a href="search?q=%22Bill+Joy%22">"Bill Joy"</a>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonTo find perl files that do not use /usr/bin/perl but something else,
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <a href="search?q=-%22%2Fusr%2Fbin%2Fperl%22+%2B%22%2Fbin%2Fperl%22">-"/usr/bin/perl" +"/bin/perl"</a>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson <!-- CONFIG: Footer -->