検索
デフォルトのテンプレートでは、一番上の検索ボックスを通じて、検索がおこなわれます。
文法
単語を含めるには、+
を、含めない場合は、-
をキーワードの前に付けます。もし、修飾語句がない場合は、+
があるものとします。
語句をダブルクォートでくくると、その語句を検索します。部分的な検索をするには、*
を付加します。つまり、“wiki”と検索すると“wiki”のみ見つけますが、“*wiki”と検索すると“DokuWiki”も見つけます。
名前空間に限定して検索することもできます。例えば、“wiki” @wiki:docs @work:docs
は、“wiki”
やwiki:docs
やwork:docs
の名前空間が検索対象になります。
クイックサーチ
ページ名で始まる語句を入力した場合、ほとんどのブラウザでは、自動的にマッチするページ名をポップアップします。
Some Background on the Searchindex
DokuWiki now uses an index to search even big wikis very fast. To be able to find anything the index needs to be filled with current data. Information about a page's content is added and updated when a page is viewed by a user. Each page includes an invisible image (webbug) which calls the index update process if needed.
The index consists of three files called index.idx
, page.idx
and word.idx
located in the cache directory .
The indexer uses a language specific stopword file which contains a list of very common words which will never be indexed (eg. the word the
in english). Searching for such a word will not return any hits.
If you upgraded your wiki from an older version without an index, your search won't return anything until the index is built. You can either wait until this happens by browsing your wiki or use the provided commandline script for updating the index.