docs/ikteam: Delete most files.
[haiku.git] / docs / userguide / zh_CN / index.html
blob01fc8fbdd191d161f6045b652b0231d952657210
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN" xml:lang="zh-CN">
4 <head>
5 <!--
7 * Copyright 2008-2009, Haiku. All rights reserved.
8 * Distributed under the terms of the MIT License.
10 * Authors:
11 * Humdinger <humdingerb@gmail.com>
12 * Translators:
13 * Pengphei Han
15 -->
16 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
17 <meta http-equiv="Content-Style-Type" content="text/css" />
18 <meta name="robots" content="all" />
19 <title>索引</title>
20 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
21 <link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
22 </head>
23 <body>
25 <div id="banner">
26 <div><span>用户指南</span></div>
27 </div>
29 <div class="nav">
30 <div class="inner">
31 <ul class="lang-menu">
32 <li class="now"><img src="../images/flags/zh_CN.png" alt="" />  中文 [中文]</li>
33 <li><a href="../ca/index.html"><img src="../images/flags/ca.png" alt="" />Català</a></li>
34 <li><a href="../de/index.html"><img src="../images/flags/de.png" alt="" />Deutsch</a></li>
35 <li><a href="../en/index.html"><img src="../images/flags/gb.png" alt="" />English</a></li>
36 <li><a href="../es/index.html"><img src="../images/flags/es.png" alt="" />Español</a></li>
37 <li><a href="../fr/index.html"><img src="../images/flags/fr.png" alt="" />Français</a></li>
38 <li><a href="../it/index.html"><img src="../images/flags/it.png" alt="" />Italiano</a></li>
39 <li><a href="../hu/index.html"><img src="../images/flags/hu.png" alt="" />Magyar</a></li>
40 <li><a href="../pl/index.html"><img src="../images/flags/pl.png" alt="" />Polski</a></li>
41 <li><a href="../pt_PT/index.html"><img src="../images/flags/pt_PT.png" alt="" />Português</a></li>
42 <li><a href="../pt_BR/index.html"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
43 <li><a href="../ro/index.html"><img src="../images/flags/ro.png" alt="" />Română</a></li>
44 <li><a href="../sk/index.html"><img src="../images/flags/sk.png" alt="" />Slovenčina</a></li>
45 <li><a href="../fi/index.html"><img src="../images/flags/fi.png" alt="" />Suomi</a></li>
46 <li><a href="../sv_SE/index.html"><img src="../images/flags/sv_SE.png" alt="" />Svenska</a></li>
47 <li><a href="../ru/index.html"><img src="../images/flags/ru.png" alt="" />Русский</a></li>
48 <li><a href="../uk/index.html"><img src="../images/flags/uk.png" alt="" />Українська</a></li>
49 <li><a href="../jp/index.html"><img src="../images/flags/jp.png" alt="" />日本語</a></li>
50 </ul>
51 <span>
52 « <a href="attributes.html">Attributes(属性)</a>
53 :: <a href="contents.html" class="uplink">内容</a>
54 :: <a href="queries.html">查询</a> »
55 </span></div>
56 </div>
58 <div id="content">
59 <div>
61 <h1>索引</h1>
63 <p><a href="attributes.html">属性</a><a href="queries.html">查询</a>是Haiku的主要特性。由于属性只能独立的用于显示文件的附加信息,而对于查询,则需要建立索引。索引把属性放置在一个查询表中,而这也将会使查询更加轻量化和快速。<br />
64 索引是文件系统的一部分,而且它独立于特定的磁卷和分区。</p>
66 <h2>终端中的索引命令</h2>
67 <p>有几个命令可以用于管理索引:</p>
68 <ul>
69 <li><b>lsindex</b> - 显示当前磁卷或者分区中的索引属性。<br />
70 下面是默认索引的属性:</li>
71 </ul>
72 <pre class="terminal"> ~ -&gt;lsindex
73 BEOS:APP_SIG
74 MAIL:account
75 MAIL:cc
76 MAIL:chain
77 MAIL:draft
78 MAIL:flags
79 MAIL:from
80 MAIL:name
81 MAIL:pending_chain
82 MAIL:priority
83 MAIL:reply
84 MAIL:status
85 MAIL:subject
86 MAIL:thread
87 MAIL:to
88 MAIL:when
89 META:address
90 META:city
91 META:company
92 META:country
93 META:email
94 META:fax
95 META:group
96 META:hphone
97 META:name
98 META:nickname
99 META:state
100 META:url
101 META:wphone
102 META:zip
103 _signature
104 _status
105 _trk/qrylastchange
106 _trk/recentQuery
107 be:deskbar_item_status
108 last_modified
109 name
110 size
111 </pre>
112 <ul>
113 <li><b>mkindex</b> - 为磁卷或者分区的索引添加属性。 </li>
114 </ul>
115 <pre>Usage: mkindex [options] &lt;attribute&gt;
116 Creates a new index for the specified attribute.
118 -d, --volume=PATH a path on the volume to which the index will be added,
119 defaults to current volume.
120 -t, --type=TYPE the type of the attribute being indexed. One of "int",
121 "llong", "string", "float", or "double".
122 Defaults to "string".
123 --copy-from path to volume to copy the indexes from.
124 -v, --verbose print information about the index being created
126 </pre>
127 <p>只有具有该属性的 <b>新建</b> 文件才可以自动添加到该索引中!
128 <br />
129 现存的文件必须通过手动的复制该文件,然后删除原件才可以添加到索引中。当然,您也可以使用 <span class="cli">reindex</span> 命令。
130 </p>
131 <ul>
132 <li><b>reindex</b> - 把已存在文件的属性添加到新建的磁卷或者分区的索引中。</li>
133 </ul>
134 <pre>Usage: reindex [-rvf] attr &lt;list of filenames and/or directories&gt;
135 -r enter directories recursively
136 -v verbose output
137 -f create/update all indices from the source volume,
138 "attr" is the path to the source volume
140 </pre>
141 <ul>
142 <li><b>rmindex</b> - 从磁卷或者分区的索引中删除属性。</li>
143 </ul>
144 <pre>Usage: rmindex [OPTION]... INDEX_NAME
146 Removes the index named INDEX_NAME from a disk volume. Once this has been
147 done, it will no longer be possible to use the query system to search for
148 files with the INDEX_NAME attribute.
150 -d, --volume=PATH a path on the volume from which the index will be
151 removed
152 -h, --help display this help and exit
153 -p, --pattern INDEX_NAME is a pattern
154 -v, --verbose print information about the index being removed
156 INDEX_NAME is the name of a file attribute.
158 If no volume is specified, the volume of the current directory is assumed.</pre>
160 </div>
161 </div>
163 <div class="nav">
164 <div class="inner"><span>
165 « <a href="attributes.html">Attributes(属性)</a>
166 :: <a href="contents.html" class="uplink">内容</a>
167 :: <a href="queries.html">查询</a> »
168 </span></div>
169 </div>
171 </body>
172 </html>