2012-11-16 01:36:54 +04:00
<?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 = "en-US" xml:lang = "en-US" >
< head >
<!--
*
* Copyright 2008-2009, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger < humdingerb @ gmail . com >
2013-02-18 00:51:59 +04:00
* Translators:
* Adriano Duarte
2012-11-16 01:36:54 +04: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" / >
< title > Índice< / title >
< link rel = "stylesheet" type = "text/css" href = "../Haiku-doc.css" / >
< / head >
< body >
< div id = "banner" >
< div > < span > Guia do Usuário< / span > < / div >
< / div >
< div class = "nav" >
< div class = "inner" >
< ul class = "lang-menu" >
< li class = "now" > < img src = "../images/flags/pt_BR.png" alt = "" / > Português (Brazil)< / li >
< li > < a href = "../fr/index.html" > < img src = "../images/flags/fr.png" alt = "" / > Français< / a > < / li >
< li > < a href = "../de/index.html" > < img src = "../images/flags/de.png" alt = "" / > Deutsch< / a > < / li >
< li > < a href = "../it/index.html" > < img src = "../images/flags/it.png" alt = "" / > Italiano< / a > < / li >
< li > < a href = "../ru/index.html" > < img src = "../images/flags/ru.png" alt = "" / > Русский< / a > < / li >
< li > < a href = "../es/index.html" > < img src = "../images/flags/es.png" alt = "" / > Español< / a > < / li >
< li > < a href = "../sv_SE/index.html" > < img src = "../images/flags/sv_SE.png" alt = "" / > Svenska< / a > < / li >
< li > < a href = "../jp/index.html" > < img src = "../images/flags/jp.png" alt = "" / > 日本語< / a > < / li >
< li > < a href = "../uk/index.html" > < img src = "../images/flags/uk.png" alt = "" / > Українська< / a > < / li >
< li > < a href = "../zh_CN/index.html" > < img src = "../images/flags/zh_CN.png" alt = "" / > 中文 [中文]< / a > < / li >
< li > < a href = "../pt_PT/index.html" > < img src = "../images/flags/pt_PT.png" alt = "" / > Português< / a > < / li >
< li > < a href = "../fi/index.html" > < img src = "../images/flags/fi.png" alt = "" / > Suomi< / a > < / li >
< li > < a href = "../sk/index.html" > < img src = "../images/flags/sk.png" alt = "" / > Slovenčina< / a > < / li >
< li > < a href = "../hu/index.html" > < img src = "../images/flags/hu.png" alt = "" / > Magyar< / a > < / li >
2013-02-18 00:51:59 +04:00
< li > < a href = "../ca/index.html" > < img src = "../images/flags/ca.png" alt = "" / > Català< / a > < / li >
2012-11-16 01:36:54 +04:00
< li > < a href = "../en/index.html" > < img src = "../images/flags/gb.png" alt = "" / > English< / a > < / li >
< / ul >
< span >
« < a href = "attributes.html" > Atributos< / a >
:: < a href = "contents.html" class = "uplink" > Conteúdo< / a >
2013-02-18 00:51:59 +04:00
:: < a href = "queries.html" > Consultas< / a > »
2012-11-16 01:36:54 +04:00
< / span > < / div >
< / div >
< div id = "content" >
< div >
< h1 > Índice< / h1 >
2013-02-18 00:51:59 +04:00
< p > < a href = "attributes.html" > Atributos< / a > e < a href = "queries.html" > Consultas< / a > são funcionalidades-chave do Haiku. Ao passo que os atributos são úteis por si mesmos, para mostrar informação adicional em um arquivo, para uma consulta, é necessário que eles sejam indexados. Ele os põe dentro de uma tabela de consulta, a qual por sua vez realiza consultas super rápidas.< br / >
O índice é parte do sistema de arquivos e é mantido por todo volume/partição separadamente.< / p >
2012-11-16 01:36:54 +04:00
< h2 >
2013-02-18 00:51:59 +04:00
Comandos de indexação no Terminal< / h2 >
< p > Existem vários comandos para gerenciar o índice:< / p >
2012-11-16 01:36:54 +04:00
< ul >
2013-02-18 00:51:59 +04:00
< li > < b > lsindex< / b > - Mostra os atributos indexados no volume/partição atual.< br / >
Estes são os atributos que são indexados por padrão:< / li >
2012-11-16 01:36:54 +04: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 >
2013-02-18 00:51:59 +04:00
< li > < b > mkindex< / b > - Adiciona um atributo ao índice de um volume/partição. < / li >
2012-11-16 01:36:54 +04:00
< / ul >
< 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 >
2013-02-18 00:51:59 +04:00
< p > Somente < b > novos< / b > arquivos com aquele atributo vem automaticamente dentro do índice!< br / >
Arquivos existentes tem que ser adicionados manualmente ao copiá-los e eliminando os originais após isso. Alternativamente pode-se utilizar o comando < span class = "cli" > reindex< / span > .
2012-11-16 01:36:54 +04:00
< / p >
< ul >
2013-02-18 00:51:59 +04:00
< li > < b > reindex< / b > - Põe os atributos de arquivos existentes dentro do recém-criado índice de um volume/partição. < / li >
2012-11-16 01:36:54 +04:00
< / 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,
"attr" is the path to the source volume
< / pre >
< ul >
2013-02-18 00:51:59 +04:00
< li > < b > rmindex< / b > - Remove um atributo de um índice de um volume/partição.< / li >
2012-11-16 01:36:54 +04:00
< / 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" > Atributos< / a >
:: < a href = "contents.html" class = "uplink" > Conteúdo< / a >
2013-02-18 00:51:59 +04:00
:: < a href = "queries.html" > Consultas< / a > »
2012-11-16 01:36:54 +04:00
< / span > < / div >
< / div >
< / body >
< / html >