Skip to content

Commit 0d25be7

Browse files
vladakahornace
authored andcommitted
use code instead of strong
1 parent 526aca2 commit 0d25be7

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

opengrok-web/src/main/webapp/help.jsp

+21-21
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ To find files that use sprintf in usr/src/cmd/cmd-inet/usr.sbin/:
7070
To find assignments to variable foo:
7171
<a href="search?<%= QueryParameters.FULL_SEARCH_PARAM_EQ %>%22foo+%3D%22">"foo ="</a>
7272

73-
To find Makefiles where pstack binary is being built:
73+
To find Makefiles where the <code>pstack</code> binary is being built:
7474
<a href="search?<%= QueryParameters.FULL_SEARCH_PARAM_EQ %>pstack&amp;
7575
<%= QueryParameters.PATH_SEARCH_PARAM_EQ %>Makefile">pstack <%= QueryBuilder.PATH %>:Makefile</a>
7676

@@ -99,9 +99,9 @@ To find all main methods in all files analyzed by C analyzer (so .c, .h, ...) do
9999
<h4>More info:</h4>
100100
A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:
101101
<ul>
102-
<li>a plus "<strong>+</strong>" or a minus "<strong>-</strong>" sign, indicating that the clause
102+
<li>a plus "<code>+</code>" or a minus "<code>-</code>" sign, indicating that the clause
103103
is required or prohibited respectively; or</li>
104-
<li>a <dfn>term</dfn> followed by a colon "<strong>:</strong>", indicating the
104+
<li>a <dfn>term</dfn> followed by a colon "<code>:</code>", indicating the
105105
<dfn>field</dfn> to be searched. This enables one to construct queries
106106
which search multiple <dfn>fields</dfn>.</li>
107107
</ul>
@@ -110,40 +110,40 @@ A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:
110110
<li>a <dfn>term</dfn>, indicating all the documents that contain this term;
111111
or</li>
112112
<li>a <dfn>phrase</dfn> - group of words surrounded by double quotes
113-
<strong>" "</strong>, e.g. "hello dolly" </li>
114-
<li>a nested query, enclosed in parentheses "<strong>(</strong>" "<strong>)</strong>" (also
113+
<code>" "</code>, e.g. "hello dolly" </li>
114+
<li>a nested query, enclosed in parentheses "<code>(</code>" "<code>)</code>" (also
115115
called query/field <dfn>grouping</dfn>) . Note that this may be used
116116
with a +/- prefix to require any of a set of terms. </li>
117117
<li>boolean <dfn>operators</dfn> which allow terms to be combined through
118-
logic operators. Supported are <strong>AND</strong>(<strong>&amp;&amp;</strong>), "<strong>+</strong>",
119-
<strong>OR</strong>(<strong>||</strong>), <strong>NOT</strong>(<strong>!</strong>) and "<strong>-</strong>" (Note: they
118+
logic operators. Supported are <code>AND</code>(<code>&amp;&amp;</code>), "<code>+</code>",
119+
<code>OR</code>(<code>||</code>), <code>NOT</code>(<code>!</code>) and "<code>-</code>" (Note: they
120120
must be ALL CAPS).</li>
121121
</ul>
122-
<p>Regular Expression, Wildcard, Fuzzy, Proximity &amp; Range Searches:</p>
122+
<p>Regular Expression, Wildcard, Fuzzy, Proximity and Range Searches:</p>
123123
<ul>
124-
<li>to perform a regular expression search use the "<strong>/</strong>" enclosure,
124+
<li>to perform a regular expression search use the "<code>/</code>" enclosure,
125125
e.g. /[mb]an/ - will search for man or for ban;<br/>
126126
NOTE: path field search escapes "/" by default, so it only supports
127127
regexps when the search string <u>starts and ends</u> with "/".<br/>
128-
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>.
128+
More info can be found on <a href="https://lucene.apache.org/core/<%=SearchEngine.LUCENE_VERSION_HELP%>/core/org/apache/lucene/util/automaton/RegExp.html?is-external=true">Lucene regexp page</a>.
129129
</li>
130-
<li>to perform a single character wildcard search use the "<strong>?</strong>" symbol,
131-
e.g. te?t</li>
132-
<li>to perform a multiple character wildcard search use the "<strong>*</strong>"
133-
symbol, e.g. test* or te*t</li>
130+
<li>to perform a single character wildcard search use the "<code>?</code>" symbol,
131+
e.g. <code>te?t</code></li>
132+
<li>to perform a multiple character wildcard search use the "<code>*</code>"
133+
symbol, e.g. <code>test*</code> or <code>te*t</code></li>
134134
<li>you can use a * or ? symbol as the first character of a search
135135
(unless not enabled using indexer option -a).</li>
136136
<li>to do a fuzzy search (find words similar in spelling, based on the
137137
Levenshtein Distance, or Edit Distance algorithm) use the tilde,
138-
"<strong>~</strong>", e.g. rcs~ </li>
138+
"<code>~</code>", e.g. rcs~ </li>
139139
<li>to do a proximity search use the tilde, "~", symbol at the end of a
140140
Phrase. For example to search for a "opengrok" and "help" within 10
141141
words of each other enter: "opengrok help"~10 </li>
142142
<li>range queries allow one to match documents whose field(s) values are
143143
between the lower and upper bound specified by the Range Query. Range
144144
Queries can be inclusive or exclusive of the upper and lower bounds.
145145
Sorting is done lexicographically. Inclusive queries are denoted by
146-
square brackets <strong>[ ]</strong> , exclusive by curly brackets <strong>{ }</strong>.
146+
square brackets <code>[ ]</code> , exclusive by curly brackets <code>{ }</code>.
147147
For example: title:{Aida TO Carmen} - will find all documents between
148148
Aida to Carmen, exclusive of Aida and Carmen. </li>
149149
</ul>
@@ -152,21 +152,21 @@ A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:
152152
<p>
153153
Opengrok supports escaping special characters that are part of the query
154154
syntax. Current special characters are:<br/>
155-
<strong>+ - &amp;&amp; || ! ( ) { } [ ] ^ " ~ * ? : \ / </strong><br/>
155+
<code>+ - &amp;&amp; || ! ( ) { } [ ] ^ " ~ * ? : \ / </code><br/>
156156
To escape these character use the \ before the character. For example to
157-
search for <strong>(1+1):2</strong> use the query: <strong>\(1\+1\)\:2</strong>
157+
search for <code>(1+1):2</code> use the query: <code>\(1\+1\)\:2</code>
158158
</p>
159159
<p>
160160
NOTE on analyzers: Indexed words are made up of Alpha-Numeric and Underscore
161161
characters. One letter words are usually not indexed as symbols!<br/>
162162
Most other characters (including single and double quotes) are treated as
163163
"spaces/whitespace" (so even if you escape them, they will not be found, since
164164
most analyzers ignore them). <br/>
165-
The exceptions are: <strong>@ $ % ^ &amp; = ? . :</strong> which are mostly indexed as
165+
The exceptions are: <code>@ $ % ^ &amp; = ? . :</code> which are mostly indexed as
166166
separate words.<br/>
167167
Because some of them are part of the query syntax, they must be escaped with a
168168
reverse slash as noted above.<br/>
169-
So searching for <strong>\+1</strong> or <strong>\+ 1</strong> will both find <strong>+1</strong> and <strong>+ 1</strong>.
169+
So searching for <code>\+1</code> or <code>\+ 1</code> will both find <code>+1</code> and <code>+ 1</code>.
170170
</p>
171171

172172
<p>Valid <dfn>FIELDs</dfn> are</p>
@@ -198,7 +198,7 @@ A <dfn>Query</dfn> is a series of clauses. A clause may be prefixed by:
198198

199199
<p>
200200
The term (phrases) can be boosted (making it more relevant) using a caret
201-
<strong>^</strong> , e.g. help^4 opengrok - will make term help boosted
201+
<code>^</code> , e.g. help^4 opengrok - will make term help boosted
202202
</p>
203203

204204
<p>Opengrok search is powered by <a href="https://lucene.apache.org/">Lucene</a>,

0 commit comments

Comments
 (0)