2010-01-14 07:00:47 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2010-03-05 07:01:38 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2010-01-14 07:00:47 +00:00
< 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 >
2011-12-03 21:12:53 +01:00
* Translators:
* satashun
* Kentaro Ozeki
* log-1
2010-01-14 07:00:47 +00: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-12-03 21:12:53 +01:00
< title > インデックス< / title >
2010-03-05 07:01:38 +00:00
< link rel = "stylesheet" type = "text/css" href = "../Haiku-doc.css" / >
2010-01-14 07:00:47 +00:00
< / head >
< body >
< div id = "banner" >
2011-06-06 16:08:15 +00:00
< div > < span > ユーザーガイド< / span > < / div >
2010-01-14 07:00:47 +00:00
< / div >
< div class = "nav" >
< div class = "inner" >
< ul class = "lang-menu" >
2010-03-05 07:01:38 +00:00
< li class = "now" > < img src = "../images/flags/jp.png" alt = "" / > 日本語< / 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 >
2011-05-22 18:01:43 +00:00
< li > < a href = "../sv_SE/index.html" > < img src = "../images/flags/sv_SE.png" alt = "" / > Svenska< / a > < / li >
2010-05-09 15:51:27 +00:00
< li > < a href = "../uk/index.html" > < img src = "../images/flags/uk.png" alt = "" / > Українська< / a > < / li >
2010-07-08 18:03:41 +00:00
< 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 >
2011-12-03 21:12:53 +01:00
< 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 >
2010-03-05 07:01:38 +00:00
< li > < a href = "../en/index.html" > < img src = "../images/flags/gb.png" alt = "" / > English< / a > < / li >
2010-01-14 07:00:47 +00:00
< / ul >
< span >
2010-10-28 08:57:17 +00:00
« < a href = "attributes.html" > 属性< / a >
2011-06-06 16:08:15 +00:00
:: < a href = "contents.html" class = "uplink" > 目次< / a >
2010-01-14 07:00:47 +00:00
:: < a href = "queries.html" > Queries< / a > »
< / span > < / div >
< / div >
< div id = "content" >
< div >
2011-06-06 16:08:15 +00:00
< div class = "box-info" > このページの翻訳はまだ完全ではありません。完成するまでは、未完成の部分はオリジナルの英文を使用します。< / div >
2010-01-14 07:00:47 +00:00
2011-12-03 21:12:53 +01:00
< h1 > インデックス< / h1 >
2010-01-14 07:00:47 +00:00
< 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 >
2011-12-03 21:12:53 +01:00
< h2 > ターミナルにおけるインデックスコマンド< / h2 >
< p > インデックスを管理するためのコマンドがいくつかあります:< / p >
2010-01-14 07:00:47 +00:00
< ul >
< li > < b > lsindex< / b > - Displays the indexed attributes on the current volume/partition.< br / >
These are the attributes that are indexed by default:< / li >
< / 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 >
2011-12-03 21:12:53 +01:00
< li > < b > mkindex< / b > - ボリューム/パーティションのインデックスに属性を追加します。< / li >
2010-01-14 07:00:47 +00: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 >
< 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 < span class = "cli" > reindex< / span > .
< / p >
< ul >
2011-12-03 21:12:53 +01:00
< li > < b > reindex< / b > - ボリューム/パーティションの新たに作られたインデックスに既存のファイルの属性を追加します。< / li >
2010-01-14 07:00:47 +00:00
< / ul >
2011-12-03 21:12:53 +01:00
< pre > 使い方: reindex [-rvf] attr < ファイル名 と/または ディレクトリのリスト>
-r 再帰的にディレクトリを辿ります
-v 詳細な出力
-f ソースとなるボリュームからすべてのインデックスを作って更新します
"attr" はソースとなるボリュームへのパスです
2010-01-14 07:00:47 +00:00
< / pre >
< ul >
2011-12-03 21:12:53 +01:00
< li > < b > rmindex< / b > - ボリューム/パーティションのインデックスから属性を削除します。< / li >
2010-01-14 07:00:47 +00:00
< / ul >
2011-12-03 21:12:53 +01:00
< pre > 使い方: rmindex [オプション]... INDEX_NAME
2010-01-14 07:00:47 +00:00
2011-12-03 21:12:53 +01:00
ディスクボリュームから INDEX_NAME という名前のインデックスを削除します。
これを行ってしまうと、 INDEX_NAME 属性のファイルを探すためにクエリシステムを使うことはできません。
2010-01-14 07:00:47 +00:00
2011-12-03 21:12:53 +01:00
-d, --volume=PATH インデックスを削除するボリュームのパス
-h, --help ヘルプを表示して終了します
-p, --pattern INDEX_NAME がパターンである場合
-v, --verbose 削除されるインデックスについての情報を表示します
2010-01-14 07:00:47 +00:00
2011-12-03 21:12:53 +01:00
INDEX_NAME はファイル属性の名前です。
2010-01-14 07:00:47 +00:00
2011-12-03 21:12:53 +01:00
もしボリュームが指定されなければ、現在のディレクトリのボリュームが対象になります。< / pre >
2010-01-14 07:00:47 +00:00
< / div >
< / div >
< div class = "nav" >
< div class = "inner" > < span >
2010-10-28 08:57:17 +00:00
« < a href = "attributes.html" > 属性< / a >
2011-06-06 16:08:15 +00:00
:: < a href = "contents.html" class = "uplink" > 目次< / a >
2010-01-14 07:00:47 +00:00
:: < a href = "queries.html" > Queries< / a > »
< / span > < / div >
< / div >
< / body >
< / html >