mirror of
https://review.haiku-os.org/haiku
synced 2025-01-19 13:01:29 +01:00
e441386a78
Fixed a typo. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27917 a95241bf-73f2-0310-859d-f6bbb57e9c96
164 lines
5.0 KiB
HTML
164 lines
5.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>The Index</title>
|
|
<style type="text/css">
|
|
body { padding: 0px }
|
|
a:visited { color: #892601; }
|
|
a:link { color: #dc3c01; }
|
|
</style>
|
|
</head>
|
|
<body lang="en-US" text="#000000" bgcolor="#ffffff" link="#dc3c01"
|
|
vlink="#892601" marginwidth="0" marginheight="0">
|
|
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="5%" bgcolor="#efefef" align="right" valign="bottom">
|
|
<img src="welcome-images/logo_lt.png" alt="logo"
|
|
border="0">
|
|
</td>
|
|
<td width="45%" bgcolor="#efefef" valign="bottom">
|
|
<img src="welcome-images/logo_rt.png" alt="logo"
|
|
border="0">
|
|
</td>
|
|
<td width="45%" height="70" bgcolor="#efefef" align="right" valign="bottom">
|
|
<font size="4">The Index</font>
|
|
</td>
|
|
<td width="5%" bgcolor="#efefef"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="5%" bgcolor="#efefef" valign="top" align="right">
|
|
<img src="welcome-images/logo_lb.png" alt="logo"
|
|
border="0">
|
|
</td>
|
|
<td width="90%" bgcolor="#efefef" valign="top" colspan="2">
|
|
<img src="welcome-images/logo_rb.png" alt="logo"
|
|
border="0">
|
|
</td>
|
|
<td width="5%" bgcolor="#efefef"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="5%" bgcolor="#e0e0e0"> </td>
|
|
<td nowrap width="90%" bgcolor="#e0e0e0" align="right" colspan="2">
|
|
<small><a href="welcome.html">Welcome</a>
|
|
|
|
Previous: <a href="attributes.html">File Attributes</a>
|
|
|
|
Next: <a href="queries.html">Queries</a></small>
|
|
</td>
|
|
<td width="5%" bgcolor="#e0e0e0"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="5%"> </td>
|
|
<td width="90%" valign="top" colspan="2">
|
|
|
|
<br>
|
|
<h2>The Index</h2>
|
|
<p>
|
|
<a href="attributes.html">Attributes</a> and <a href="queries.html">Queries</a> are key features of Haiku. While attributes are useful on their own, to display additional information on a file, for a query on them, they need to be indexed. It puts them into a lookup table, which in turn makes queries lightning fast.<br>
|
|
The index is part of the filesystem and is kept for every volume/partition separately.
|
|
</p>
|
|
<br>
|
|
<h3>Indexing commands in Terminal</h3>
|
|
<p>There are several commands to manage the index:
|
|
<ul>
|
|
<li><b>lsindex</b> - Displays the indexed attributes on the current volume/partition.
|
|
<p>These are the attributes that are indexed by default:<br>
|
|
<pre>58 ~ ->lsindex
|
|
BEOS:APP_SIG
|
|
MAIL:account
|
|
MAIL:cc
|
|
MAIL:chain
|
|
MAIL:draft
|
|
MAIL:flags
|
|
MAIL:from
|
|
MAIL:name
|
|
MAIL:pending_chain
|
|
MAIL:priority
|
|
MAIL:reply
|
|
MAIL:status
|
|
MAIL:subject
|
|
MAIL:thread
|
|
MAIL:to
|
|
MAIL:when
|
|
META:address
|
|
META:city
|
|
META:company
|
|
META:country
|
|
META:email
|
|
META:fax
|
|
META:group
|
|
META:hphone
|
|
META:name
|
|
META:nickname
|
|
META:state
|
|
META:url
|
|
META:wphone
|
|
META:zip
|
|
_signature
|
|
_status
|
|
_trk/qrylastchange
|
|
_trk/recentQuery
|
|
be:deskbar_item_status
|
|
last_modified
|
|
name
|
|
size
|
|
</pre></p></li>
|
|
<li><b>mkindex</b> - Adds an attribute to the index of a volume/partition.
|
|
<pre>Usage: mkindex [options] <attribute>
|
|
Creates a new index for the specified attribute.
|
|
|
|
-d, --volume=PATH a path on the volume to which the index will be added,
|
|
defaults to current volume.
|
|
-t, --type=TYPE the type of the attribute being indexed. One of "int",
|
|
"llong", "string", "float", or "double".
|
|
Defaults to "string".
|
|
--copy-from path to volume to copy the indexes from.
|
|
-v, --verbose print information about the index being created
|
|
|
|
</pre>
|
|
<p><i><b>Note:</b> Only <b>new</b> files with that attribute come automatically into the index!</i><br>
|
|
Existing files have to be added manually by copying them and deleting the originals after that. Alternatively you can use the tool <a href="http://www.bebits.com/app/2033" rel="nofollow">reindex</a>.
|
|
</p>
|
|
</li>
|
|
<li><b>rmindex</b> - Removes an attribute from the index of a volume/partition.
|
|
<pre>Usage: rmindex [OPTION]... INDEX_NAME
|
|
|
|
Removes the index named INDEX_NAME from a disk volume. Once this has been
|
|
done, it will no longer be possible to use the query system to search for
|
|
files with the INDEX_NAME attribute.
|
|
|
|
-d, --volume=PATH a path on the volume from which the index will be
|
|
removed
|
|
-h, --help display this help and exit
|
|
-p, --pattern INDEX_NAME is a pattern
|
|
-v, --verbose print information about the index being removed
|
|
|
|
INDEX_NAME is the name of a file attribute.
|
|
|
|
If no volume is specified, the volume of the current directory is assumed.</pre>
|
|
</ul>
|
|
|
|
</td>
|
|
<td width="5%"> </td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td width="5%" bgcolor="#efefef"> </td>
|
|
<td width="90%" bgcolor="#efefef" align="right" colspan="2">
|
|
<a href="welcome.html">Welcome</a>
|
|
|
|
Previous: <a href="attributes.html">File Attributes</a>
|
|
|
|
Next: <a href="queries.html">Queries</a>
|
|
</td>
|
|
<td width="5%" bgcolor="#efefef"> </td>
|
|
</tr>
|
|
|
|
</table>
|
|
</body>
|
|
</html>
|