2010-01-14 10:00:47 +03:00
<?xml version="1.0" encoding="UTF-8"?>
2010-03-05 10:01:38 +03:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2017-10-01 14:21:40 +03:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "it" xml:lang = "it" >
2010-01-14 10:00:47 +03:00
< head >
<!--
*
* Copyright 2008-2009, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger < humdingerb @ gmail . com >
2010-12-01 17:23:44 +03:00
* Translators:
* fyskij
2010-12-30 22:10:45 +03:00
* Barrett
2010-01-14 10:00:47 +03:00
*
-->
< 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" / >
2011-05-22 22:01:43 +04:00
< title > L'indice del filesystem< / title >
2017-10-01 14:21:40 +03:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
2010-03-05 10:01:38 +03:00
< link rel = "stylesheet" type = "text/css" href = "../Haiku-doc.css" / >
2010-01-14 10:00:47 +03:00
< / head >
< body >
< div id = "banner" >
2010-07-08 22:03:41 +04:00
< div > < span > Guida dell'utente< / span > < / div >
2010-01-14 10:00:47 +03:00
< / div >
< div class = "nav" >
< div class = "inner" >
< ul class = "lang-menu" >
2010-03-05 10:01:38 +03:00
< li class = "now" > < img src = "../images/flags/it.png" alt = "" / > Italiano< / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../ca/index.html" > < img src = "../images/flags/ca.png" alt = "" / > Català< / a > < / li >
2010-03-05 10:01:38 +03:00
< li > < a href = "../de/index.html" > < img src = "../images/flags/de.png" alt = "" / > Deutsch< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../en/index.html" > < img src = "../images/flags/gb.png" alt = "" / > English< / a > < / li >
2010-03-05 10:01:38 +03:00
< li > < a href = "../es/index.html" > < img src = "../images/flags/es.png" alt = "" / > Español< / a > < / li >
2017-06-24 01:19:23 +03:00
< li > < a href = "../fr/index.html" > < img src = "../images/flags/fr.png" alt = "" / > Français< / a > < / li >
2012-11-16 01:36:54 +04:00
< li > < a href = "../hu/index.html" > < img src = "../images/flags/hu.png" alt = "" / > Magyar< / a > < / li >
2014-05-31 02:02:36 +04:00
< li > < a href = "../pl/index.html" > < img src = "../images/flags/pl.png" alt = "" / > Polski< / a > < / li >
2017-06-24 01:19:23 +03:00
< 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 >
2016-05-06 05:15:13 +03:00
< li > < a href = "../ro/index.html" > < img src = "../images/flags/ro.png" alt = "" / > Română< / a > < / li >
2017-06-24 01:19:23 +03:00
< 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 >
2010-01-14 10:00:47 +03:00
< / ul >
< span >
2010-12-01 17:23:44 +03:00
« < a href = "attributes.html" > Attributi< / a >
2010-07-08 22:03:41 +04:00
:: < a href = "contents.html" class = "uplink" > Contenuti< / a >
2010-12-01 17:23:44 +03:00
:: < a href = "queries.html" > Le query< / a > »
2010-01-14 10:00:47 +03:00
< / span > < / div >
< / div >
< div id = "content" >
< div >
2011-05-22 22:01:43 +04:00
< h1 > L'indice del filesystem< / h1 >
2010-01-14 10:00:47 +03:00
2010-12-01 17:23:44 +03:00
< p > Gli < a href = "attributes.html" > Attributi< / a > e le < a href = "queries.html" > Query< / a > sono fra le caratteristiche principali di Haiku.
2010-12-04 22:04:43 +03:00
Mentre gli attributi sono utili di per se in quanto permettono di visualizzare delle informazioni aggiuntive, per poter effettuare delle query c'è bisogno che gli attributi vengano indicizzati.
2010-12-30 22:10:45 +03:00
Essi vengono inseriti su una tabella di ricerca, che a sua volta consente di eseguire delle query velocissime.< br / >
L'indice è parte del filesystem ed è conservato su ogni volume e su ogni partizione separatamente.< / p >
2010-01-14 10:00:47 +03:00
2010-12-01 17:23:44 +03:00
< h2 > Comandi di indicizzazione dal Terminale< / h2 >
< p > Ci sono numerosi comandi per gestire l'indice:< / p >
2010-01-14 10:00:47 +03:00
< ul >
2010-12-30 22:10:45 +03:00
< li > < b > lsindex< / b > - Visualizza l'indice degli attributi sul volume o sulla partizione in uso.< br / >
2010-12-01 17:23:44 +03:00
Ci sono attributi che vengono indicizzati in modo predefinito:< / li >
2010-01-14 10:00:47 +03:00
< / ul >
< pre class = "terminal" > ~ -> 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 >
2010-12-30 22:10:45 +03:00
< li > < b > mkindex< / b > - Aggiunge un attributo all'indice del volume o della partizione.< / li >
2010-01-14 10:00:47 +03:00
< / ul >
2010-12-30 22:10:45 +03:00
< pre > Usage: mkindex [options] < attribute>
Creates a new index for the specified attribute.
2010-01-14 10:00:47 +03:00
2010-12-30 22:10:45 +03:00
-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
2010-01-14 10:00:47 +03:00
< / pre >
2011-05-22 22:01:43 +04:00
< p > Verranno automaticamente indicizzati solo i < b > nuovi< / b > file con questo attributo.< br / >
I file esistenti devono essere aggiunti manualmente copiandoli ed eliminando gli originali, altrimenti si può usare il comando < span class = "cli" > reindex< / span > .
2010-01-14 10:00:47 +03:00
< / p >
< ul >
2010-12-30 22:10:45 +03:00
< li > < b > reindex< / b > - Inserisce gli attributi dei file esistenti nel nuovo indice di un volume o di una partizione. < / li >
2010-01-14 10:00:47 +03:00
< / ul >
2010-12-30 22:10:45 +03:00
< 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,
"attr" is the path to the source volume
2010-01-14 10:00:47 +03:00
< / pre >
< ul >
2010-12-30 22:10:45 +03:00
< li > < b > rmindex< / b > - Rimuove un attributo dall'indice di un volume o di una partizione.< / li >
2010-01-14 10:00:47 +03:00
< / ul >
2010-12-30 22:10:45 +03:00
< pre > Usage: rmindex [OPTION]... INDEX_NAME
2010-01-14 10:00:47 +03:00
2010-12-30 22:10:45 +03:00
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.
2010-01-14 10:00:47 +03:00
2010-12-30 22:10:45 +03:00
If no volume is specified, the volume of the current directory is assumed.< / pre >
2010-01-14 10:00:47 +03:00
< / div >
< / div >
< div class = "nav" >
< div class = "inner" > < span >
2010-12-01 17:23:44 +03:00
« < a href = "attributes.html" > Attributi< / a >
2010-07-08 22:03:41 +04:00
:: < a href = "contents.html" class = "uplink" > Contenuti< / a >
2010-12-01 17:23:44 +03:00
:: < a href = "queries.html" > Le query< / a > »
2010-01-14 10:00:47 +03:00
< / span > < / div >
< / div >
< / body >
< / html >