2008-12-10 02:31:04 +03:00
<?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2009-01-12 18:58:51 +03:00
"../../html-dtd/xhtml1-strict.dtd">
2008-12-10 02:31:04 +03:00
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" xml:lang = "en-US" >
2008-10-08 01:04:11 +04:00
< head >
2008-12-10 02:31:04 +03:00
<!--
*
2009-02-21 14:40:17 +03:00
* Copyright 2008-2009, Haiku. All rights reserved.
2008-12-10 02:31:04 +03:00
* Distributed under the terms of the MIT License.
*
* Authors:
* Humdinger < humdingerb @ gmail . com >
*
-->
< 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" / >
2008-10-17 13:53:43 +04:00
< title > Index< / title >
2009-01-12 18:58:51 +03:00
< link rel = "stylesheet" type = "text/css" href = "../../Haiku-doc.css" / >
2008-10-08 01:04:11 +04:00
< / head >
2008-12-10 02:31:04 +03:00
< body >
2008-10-08 01:04:11 +04:00
2008-10-09 00:51:49 +04:00
< div class = "logo" >
2009-01-12 18:58:51 +03:00
< img src = "../images/logo.png" alt = "logo" width = "372" height = "86" / >
2008-10-17 13:53:43 +04:00
< div class = "title" > Index< / div >
2008-10-09 00:51:49 +04:00
< / div >
< div class = "topnav" >
< p >
2008-10-17 13:53:43 +04:00
< a href = "contents.html" > Contents< / a >
2008-12-10 02:31:04 +03:00
     
2008-10-17 13:53:43 +04:00
Previous: < a href = "attributes.html" > Attributes< / a >
2008-12-10 02:31:04 +03:00
     
2008-10-09 00:51:49 +04:00
Next: < a href = "queries.html" > Queries< / a >
< / p >
< / div >
2008-10-08 01:04:11 +04:00
2008-10-09 00:51:49 +04:00
< div class = "content" >
2008-10-08 01:04:11 +04:00
2008-12-10 02:31:04 +03: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 >
2008-10-09 03:25:32 +04:00
2008-10-17 13:53:43 +04:00
< h2 > Indexing commands in Terminal< / h2 >
2008-12-10 02:31:04 +03:00
< p > There are several commands to manage the index:< / p >
2008-10-03 12:03:14 +04:00
< ul >
< li > < b > lsindex< / b > - Displays the indexed attributes on the current volume/partition.
2008-12-10 02:31:04 +03:00
< p > These are the attributes that are indexed by default:< br / >
< pre class = "terminal" > ~ -> lsindex
2008-10-03 12:03:14 +04:00
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
2009-02-21 14:40:17 +03:00
< / pre > < p > < br / > < / p > < / li >
2008-10-03 12:03:14 +04:00
< li > < b > mkindex< / b > - Adds an attribute to the index of a volume/partition.
< 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 >
2009-02-21 14:40:17 +03:00
< 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 tool < a href = "http://www.bebits.com/app/2033" > reindex< / a > .
< / p > < / li >
2008-10-03 12:03:14 +04:00
< li > < b > rmindex< / b > - Removes an attribute from the index of a volume/partition.
< 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 >
< / ul >
2008-10-08 01:04:11 +04:00
2008-10-09 00:51:49 +04:00
< / div >
2008-10-08 01:04:11 +04:00
2008-10-09 00:51:49 +04:00
< div class = "bottomnav" >
< p >
2008-10-17 13:53:43 +04:00
< a href = "contents.html" > Contents< / a >
2008-12-10 02:31:04 +03:00
     
2008-10-17 13:53:43 +04:00
Previous: < a href = "attributes.html" > Attributes< / a >
2008-12-10 02:31:04 +03:00
     
2008-10-08 01:04:11 +04:00
Next: < a href = "queries.html" > Queries< / a >
2008-10-09 00:51:49 +04:00
< / p >
< / div >
2008-10-08 01:04:11 +04:00
< / body >
< / html >