<divclass="box-info">Traducerea acestei pagini nu este completă încă. Până când va fi, părțile incomplete utilizează originalul în limba engleză.</div>
<h1>Index</h1>
<p><ahref="attributes.html">Attributes</a> and <ahref="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>
-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>Only <b>new</b> files with that attribute come automatically into the index!<br/>
Existing files have to be added manually by copying them and deleting the originals after that. Alternatively you can use the command <spanclass="cli">reindex</span>.
</p>
<ul>
<li><b>reindex</b> - Puts the attributes of existing files into the newly created index of a volume/partition. </li>
</ul>
<pre>Usage: reindex [-rvf] attr <list of filenames and/or directories>
-r enter directories recursively
-v verbose output
-f create/update all indices from the source volume,