help.jsp revision ba7acbadb299581bd4e995c01d86200e3c04a5c7
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCDDL HEADER START
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsThe contents of this file are subject to the terms of the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCommon Development and Distribution License (the "License").
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsYou may not use this file except in compliance with the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsSee LICENSE.txt included in this distribution for the specific
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewslanguage governing permissions and limitations under the License.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsWhen distributing Covered Code, include this CDDL HEADER in each
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsfile and include the License file at LICENSE.txt.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsIf applicable, add the following below this CDDL HEADER, with the
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsfields enclosed by brackets "[]" replaced with your own identifying
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrewsinformation: Portions Copyright [yyyy] [name of copyright owner]
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCDDL HEADER END
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsCopyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsUse is subject to license terms.
f41405d21249e11c1636301b1324ac1937b455aaMark AndrewsPortions Copyright 2011 Jens Elkner.
7e8f841d085cbd14b270f7bb9e2a2b7c5bc22565Mark Andrews--%><%@ page session="false" errorPage="error.jsp" import="
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews/* ---------------------- help.jsp start --------------------- */
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews cfg = PageConfig.get(request);
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews cfg.setTitle("OpenGrok Help");
33518843817dd9cf127eb09c5952227f1972af55Mark Andrews <div id="page">
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews <div id="whole_header">
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews <div id="header"><%@
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews <div id="Masthead"></div>
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews <div id="sbar">
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews <div id="menu"><%@
d39690e5a9b4a9a084d984abd193bed4395db41aDavid Lawrence <div id="help">
105f5a65b1f680f4cb6f897b8b0f7ee7e09e41ebDavid Lawrence<h4>Examples:</h4>
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews<pre class="example">
88b3bc12b5570aae77e5963204e9111a2875915eAndreas GustafssonTo find where setResourceMonitors is defined:
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark Andrews<a href="search?q=&defs=setResourceMonitors">defs:setResourceMonitors</a>
8886caf5dc3db70638022ddfd5442c0930bd43b5Mark AndrewsTo find files that use sprintf in usr/src/cmd/cmd-inet/usr.sbin/:
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews<a href="search?refs=sprintf&path=usr%2Fsrc%2Fcmd%2Fcmd-inet%2Fusr.sbin%2F"
ff8fd4d1b6abb0490b5aaf2b1d86555750ae0818Mark Andrews>refs:sprintf path:usr/src/cmd/cmd-inet/usr.sbin</a>
9463feb3cb002df10b053f71e21540607c7a48e8Tatuya JINMEI 神明達哉To find assignments to variable foo:
c05a979fda35c83d7fba16fee7859644e98a7450Mark Andrews<a href="search?q=%22foo+%3D%22">"foo ="</a>
fcb54ce0a4f7377486df5bec83b3aa4711bf4131Mark AndrewsTo find Makefiles where pstack binary is being built:
58e0b35a3bbb50d154c36749096f7463dab75a7aMark Andrews<a href="search?q=pstack&path=Makefile">pstack path:Makefile</a>
c58088e3a0fd9e553db750cd4b08d3e621d0ded4Mark Andrewsto search for phrase "Bill Joy":
b9858c2efcee324745a1b8d7b099baf540bc695bMark Andrews<a href="search?q=%22Bill+Joy%22">"Bill Joy"</a>
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark AndrewsTo find perl files that do not use /usr/bin/perl but something else:
5a020bc04be73df06735da0ec1abb1dd71c755e5Mark Andrews<a href="search?q=-%22%2Fusr%2Fbin%2Fperl%22+%2B%22%2Fbin%2Fperl%22"
a69a77ddfef58e93036cf6173dc7f91ed864d103Mark AndrewsTo find all strings beginning with foo use the wildcard:
f4545143206d918a7f6ee53cd4fb9788c534c0c7Mark Andrews<a href="search?q=foo*">foo*</a>
09233633dadbd7878e60dd383a814e24e5eda1c6Mark AndrewsTo find all files which have . c in their name (dot is a token!):
09233633dadbd7878e60dd383a814e24e5eda1c6Mark Andrews<a href="search?path=%22. c%22">". c"</a>
de90c0b2efac159580365beaa761a14bdb74330cMark AndrewsTo find all files which start with "ma" and then have only alphabet characters do:
49aa1303a7cf1ec2a06cde11e46a039dddfca8feMark Andrews<a href="search?path=/ma[a-zA-Z]*/">path:/ma[a-zA-Z]*/</a>
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark AndrewsTo find all main methods in all files analyzed by C analyzer (so .c, .h, ...) do:
e03d4ecce3b62bb0a02d2f5e2cc1a9549df08498Mark Andrews<a href="search?q=main&type=c">main type:c</a>
b6f837397dadf6b296ee1825c95e90235ee5b5ffMark Andrews<h4>More info:</h4>
b6f837397dadf6b296ee1825c95e90235ee5b5ffMark AndrewsA <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:
2984f8f7bf213642e47affe710851ff0d6580083Mark Andrews <li>a plus "<b>+</b>" or a minus "<b>-</b>" sign, indicating that the clause
666bae3ccc9d50d840dd6b7b13731f7653f74e77Mark Andrews is required or prohibited respectively; or</li>
a14a8a963a407d636f76e223704f62440bd10176Mark Andrews <li>a <dfn>term</dfn> followed by a colon "<b>:</b>", indicating the
fd6574dbc551faac89ae2ce6f3549fed51c24e49Mark Andrews <dfn>field</dfn> to be searched. This enables one to construct queries
fd6574dbc551faac89ae2ce6f3549fed51c24e49Mark Andrews which search multiple <dfn>fields</dfn>.</li>
cb6fe566ff051ade7b99f5ca9fca897193d1bd4fMark Andrews<p>A <dfn>clause</dfn> may be either:</p>
<b>" "</b>, e.g. "hello dolly" </li>
called query/field <dfn>grouping</dfn>) . Note that this may be used
e.g. /[mb]an/ - will search for man or for ban;<br/>
More info can be found on <a href="http://lucene.apache.org/core/<%=SearchEngine.LUCENE_VERSION_HELP%>/core/org/apache/lucene/util/automaton/RegExp.html?is-external=true">Lucene regexp page</a>.
e.g. te?t</li>
symbol, e.g. test* or te*t</li>
"<b>~</b>", e.g. rcs~ </li>
"spaces/whitespace" (so even if you escape them, they will not be found, since
<dd>Only finds symbol definitions (where e.g. a variable (function, ...) is defined).</dd>
<dd>Only finds symbols (e.g. methods, classes, functions, variables).</dd>
<dd>path of the source file (no need to use dividers, or if, then use "/" - Windows users, "\" is an escape key in Lucene query syntax! <br/>Please don't use "\", or replace it with "/").<br/>Also note that if you want just exact path, enclose it in "", e.g. "src/mypath", otherwise dividers will be removed and you get more hits.</dd>
<dd>Type of analyzer used to scope down to certain file types (e.g. just C sources).<br/>Current mappings: <%=SearchHelper.getFileTypeDescriptions().toString()%></dd>
<b>^</b> , e.g. help^4 opengrok - will make term help boosted
<p>Opengrok search is powered by <a href="http://lucene.apache.org/">Lucene</a>,
for more detail on query syntax refer to <a href="http://lucene.apache.org/core/<%=SearchEngine.LUCENE_VERSION_HELP%>/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#package_description">Lucene docs</a>.
Key "1" toggles <dfn>Intelligence Window</dfn>. It gives the user many helper actions on the last symbol pointed by the mouse cursor.
<img src="default/img/intelli-window.png"/>
Key "2" toggles highlighting of the last symbol pointed by the mouse cursor. This functionality is also accessible via the <dfn>Intelligence Window</dfn>.
<img src="default/img/symbol-highlighting.png"/>
/* ---------------------- help.jsp end --------------------- */
include file="foot.jspf"