DokuWiki

It's better when it's simple

User Tools

Site Tools


search

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
search [2016-10-09 01:35]
ach [OpenSearch] updated screenshot and instructions how to add your wiki's search to Firefox
search [2020-06-04 12:27] (current)
andi
Line 2: Line 2:
  
 Search is done through the Search box in top row (when using the default [[template]]). Search is done through the Search box in top row (when using the default [[template]]).
 +
 ===== Syntax ===== ===== Syntax =====
  
Line 65: Line 66:
 The index consists of files called ''page.idx'', ''w//[n]//.idx'' and ''i//[n]//.idx'' located in the index directory. ''w//[n]//.idx'' contains a list of all words (except stopwords) with a length of //n// that appear on the wiki pages. For every line in ''w//[n]//.idx'' there is a line in the corresponding ''i//[n]//.idx'' file that contains page references in the form of ''pn*freq''. ''pn'' is a line number for ''page.idx'', ''freq'' denotes how often the word appears on the page. Multiple page references are separated with a colon. The index consists of files called ''page.idx'', ''w//[n]//.idx'' and ''i//[n]//.idx'' located in the index directory. ''w//[n]//.idx'' contains a list of all words (except stopwords) with a length of //n// that appear on the wiki pages. For every line in ''w//[n]//.idx'' there is a line in the corresponding ''i//[n]//.idx'' file that contains page references in the form of ''pn*freq''. ''pn'' is a line number for ''page.idx'', ''freq'' denotes how often the word appears on the page. Multiple page references are separated with a colon.
  
-The [[indexer]] uses a language specific stopword file which contains a list of very common words which will never be indexed (e.g. the word ''the'' in English). Searching for such a word will not return any hits. This stopword file is located in language folder of the DokuWiki installation, that is <dokuwiki>/inc/lang/<language>/stopwords.txt so you can edit the file in proper folder for adding or removing words not indexed for that language.+The [[taskrunner|indexer]] uses a language specific stopword file which contains a list of very common words which will never be indexed (e.g. the word ''the'' in English). Searching for such a word will not return any hits. This stopword file is located in language folder of the DokuWiki installation, that is <dokuwiki>/inc/lang/<language>/stopwords.txt so you can edit the file in proper folder for adding or removing words not indexed for that language.
  
 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 install the [[plugin:searchindex]] plugin. You can also use the provided [[cli|commandline script]] for updating the index. 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 install the [[plugin:searchindex]] plugin. You can also use the provided [[cli|commandline script]] for updating the index.
 +
 +===== See also =====
 +
 +  * [[faq:searchindex|Search Index Issues]]
 +  * [[config:search_fragment|Configuration Setting: search_fragment]]
 +  * [[config:search_nslimit|Configuration Setting: search_nslimit]]
 +  * [[config:readdircache|Configuration Setting: readdircache]]
 +  * [[plugintag>search|Plugins tagged with "search"]]
 +
search.1475969717.txt.gz ยท Last modified: 2016-10-09 01:35 by ach