<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<!-- 
 *
 * Copyright 2008-2009, Haiku. All rights reserved.
 * Distributed under the terms of the MIT License.
 *
 * Authors:
 *		Humdinger <humdingerb@gmail.com>
 * Translators:
 *		Loïc
 *
-->
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<meta name="robots" content="all" />
	<title>Index</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link rel="stylesheet" type="text/css" href="../Haiku-doc.css" />
</head>
<body>

<div id="banner">
<div><span>Guide de l’utilisateur</span></div>
</div>

<div class="nav">
<div class="inner">
<ul class="lang-menu">
<li class="now"><img src="../images/flags/fr.png" alt="" /> Français</li>
<li><a href="../ca/index.html"><img src="../images/flags/ca.png" alt="" />Català</a></li>
<li><a href="../de/index.html"><img src="../images/flags/de.png" alt="" />Deutsch</a></li>
<li><a href="../en/index.html"><img src="../images/flags/gb.png" alt="" />English</a></li>
<li><a href="../es/index.html"><img src="../images/flags/es.png" alt="" />Español</a></li>
<li><a href="../it/index.html"><img src="../images/flags/it.png" alt="" />Italiano</a></li>
<li><a href="../hu/index.html"><img src="../images/flags/hu.png" alt="" />Magyar</a></li>
<li><a href="../pl/index.html"><img src="../images/flags/pl.png" alt="" />Polski</a></li>
<li><a href="../pt_PT/index.html"><img src="../images/flags/pt_PT.png" alt="" />Português</a></li>
<li><a href="../pt_BR/index.html"><img src="../images/flags/pt_BR.png" alt="" />Português (Brazil)</a></li>
<li><a href="../ro/index.html"><img src="../images/flags/ro.png" alt="" />Română</a></li>
<li><a href="../sk/index.html"><img src="../images/flags/sk.png" alt="" />Slovenčina</a></li>
<li><a href="../fi/index.html"><img src="../images/flags/fi.png" alt="" />Suomi</a></li>
<li><a href="../sv_SE/index.html"><img src="../images/flags/sv_SE.png" alt="" />Svenska</a></li>
<li><a href="../zh_CN/index.html"><img src="../images/flags/zh_CN.png" alt="" /> 中文 [中文]</a></li>
<li><a href="../ru/index.html"><img src="../images/flags/ru.png" alt="" />Русский</a></li>
<li><a href="../uk/index.html"><img src="../images/flags/uk.png" alt="" />Українська</a></li>
<li><a href="../jp/index.html"><img src="../images/flags/jp.png" alt="" />日本語</a></li>
</ul>
<span>
 «  <a href="attributes.html">Attributs</a> 
::  <a href="contents.html" class="uplink">Sommaire</a> 
::  <a href="queries.html">Requêtes</a>  »
</span></div>
</div>

<div id="content">
<div>

<h1>Index</h1>

<p>Les <a href="attributes.html">attributs</a> et les <a href="queries.html">requêtes</a> sont des caractéristiques clés de Haiku. Alors que les attributs sont utiles par eux même, pour afficher des informations supplémentaires d'un fichier, ils doivent être indexés pour faire l'objet d'une requête. Ainsi, ils sont classés dans une liste, ce qui rend les requêtes rapides comme l'éclair.<br />
L'indexation fait partie du système de fichiers et est conservée dans chaque volume ou partition séparément.</p>

<h2>Commandes d'indexation dans le Terminal</h2> 
<p>Il existe plusieurs commandes pour gérer les indexes :</p>
<ul> 
<li><b>lsindex</b> - Affiche les attributs indexés sur le volume ou la partition actuel.<br />
Voici les attributs qui sont indexés par défaut :</li>
</ul>
<pre class="terminal"> ~ -&gt;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>
<ul>
<li><b>mkindex</b> - Ajoute l'indexation d'un attribut à un volume ou à une partition.</li>
</ul>
<pre>Usage: mkindex [options] &lt;attribute&gt; 
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>Seuls les <b>nouveaux</b> fichiers portant cet attribut sont pris en compte automatiquement dans l'index !<br />
Les fichiers existants doivent être ajoutés manuellement en les copiant et en supprimant les originaux par la suite. Sinon, vous pouvez utiliser l'outil <span class="cli">reindex</span>.</p>
<ul>
<li><b>reindex</b> - Insère les attributs des fichiers existants dans l'indexation nouvellement créée sur le volume ou la partition.</li>
</ul>
<pre>Usage: reindex [-rvf] attr &lt;list of filenames and/or directories&gt; 
  -r    enter directories recursively
  -v    verbose output
  -f    create/update all indices from the source volume,
        "attr" is the path to the source volume

</pre>
<ul>
<li><b>rmindex</b> - Retire l'indexation d'un attribut à un volume ou à une partition.</li>
</ul>
<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>

</div>
</div>

<div class="nav">
<div class="inner"><span>
 «  <a href="attributes.html">Attributs</a> 
::  <a href="contents.html" class="uplink">Sommaire</a> 
::  <a href="queries.html">Requêtes</a>  »
</span></div>
</div>

</body>
</html>