📄 nmz.body
字号:
<h2><a name="query">Query</a></h2><h3><a name="query-term">Single term query</a></h3><p>The query specifies only one term for retrieving alldocuments which contain the term. e.g., </p><p class="example">namazu</p><h3><a name="query-and">AND query</a></h3> <p>The query specifies two or more terms for retrieving alldocuments which contain both terms. You can insert the<code class="operator">and</code> operator between the terms. e.g., </p><p class="example">Linux and Netscape</p><p>You can omit the <code class="operator">and</code> operator. Terms which isseparated by one ore more spaces is assumed to be AND query.</p><h3><a name="query-or">OR query</a></h3><p>The query specifies two or more terms for retrieving alldocuments which contain either term. You can insert the<code class="operator">or</code> operator between the terms.e.g.,</p><p class="example">Linux or FreeBSD</p><h3><a name="query-not">NOT query</a></h3><p>The query specifies two or more terms for retrieving alldocuments which contain a first term but doesn't contain thefollowing terms. You can insert the <code class="operator">not</code>operator between the terms to do NOT query. e.g.,</p><p class="example">Linux not UNIX</p><h3><a name="query-grouping">Grouping</a></h3><p>You can group queries by surrounding them byparentheses. The parentheses should be separated by one ormore spaces. e.g., </p><p class="example">( Linux or FreeBSD ) and Netscape not Windows</p><h3><a name="query-phrase">Phrase searching</a></h3><p>You can search for a phrase which consists of two or more termsby surrounding them with double quotes like<code class="operator">"..."</code> or with braces like <code class="operator">{...}</code>.In Namazu, precision of phrase searching is not 100 %,so it causes wrong results occasionally. e.g.,</p><p class="example">{GNU Emacs}</p><!-- foo<p>You must choose the latter with Tkanamzu or namazu.el.</p>--><h3><a name="query-substring">Substring matching</a></h3><p>The are three types of substring matching searching.</p><dl> <dt>Prefix matching<dd><code class="example">inter*</code> (terms which begin with <code>inter</code>)<dt>Inside matching<dd><code class="example">*text*</code> (terms which contain <code>text</code>) <dt>Suffix matching<dd><code class="example">*net</code> (terms which terminatedwith <code>net</code>)</dl><h3><a name="query-regex">Regular expressions</a></h3><p>You can use regular expressions for pattern matching. Theregular expressions must be surrounded by slashes like <codeclass="operator">/.../</code>. Namazu uses <ahref="http://www.ruby-lang.org/">Ruby</a>'s regularregular expressions engine. It offers generally <ahref="http://www.perl.com/">Perl</a> compatible flavor.e.g.,</p><p class="example">/pro(gram|blem)s?/</p><h3><a name="query-field">Field-specified searching</a></h3><p>You can limit your search to specific fields such as<code>Subject:</code>, <code>From:</code>,<code>Message-Id:</code>. It's especially convenient forMail/News documents. e.g.,</p><ul><li><code class="example">+subject:Linux</code><br>(Retrieving all documents which contain <code>Linux</code>in a <code>Subject:</code> field)<li><code class="example">+subject:"GNU Emacs"</code><br>(Retrieving all documents which contain <code>GNU Emacs</code>in a <code>Subject:</code> field)<li><code class="example">+from:foo@bar.jp</code><br>(Retrieving all documents which contain <code>foo@bar.jp</code>in a <code>From:</code> field)<li><code class="example">+message-id:<199801240555.OAA18737@foo.bar.jp></code><br>(Retrieving a certain document which contains specified<code>Message-Id:</code>)</ul><h3><a name="query-notes">Notes</a></h3><ul><li>In any queries, Namazu ignores case distinctions ofalphabet characters. In other words, Namazu doescase-insensitive pattern matching in any time.<li>Japanese phrases are forced to be segmented intomorphemes automatically and are handled them as <ahref="#query-phrase">phrase searching</a>. This processingcauses invalid segmentation occasionally.<li>Alphabet, numbers or a part of symbols (duplicated inASCII) characters which defined in JIS X 0208 (JapaneseIndustrial Standards) are handled as ASCII characters.<li>Namazu can handle a term which contains symbols like<code>TCP/IP</code>. Since this handling isn't complete,you can describe <code>TCP and IP</code> instead of<code>TCP/IP</code>, but it may cause noisy results.<li>Substring matching and field-specified searching takesmore time than other methods.<li>If you want to use <code class="operator">and</code>,<code class="operator">or</code> or <codeclass="operator">not</code> simply as terms, you cansurround them respectively with double quotes like <codeclass="operator">"..."</code> or braces like <codeclass="operator">{...}</code>. <!-- fooYou must choose the latter with Tkanamzu or namazu.el.--></ul>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -