]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn
ikiwiki (3.20130711) unstable; urgency=low
[git.ikiwiki.info.git] / doc / bugs / search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn
1 Currently, ikiwiki indexes the "title" and "link" fields of a page
2 using the prefix "Z".
3 This is incorrect.
4 "Z" is for stemmed terms,
5 which xapian inserts itself.
6 Furthermore, the custom field "LINK" should use the "X" prefix.
7 (This is according to the [xapian-omega documentation] [xapian].)
9 I have a [patch][] that fixes this.
10 Once it is applied,
11 the wiki should be rebuilt to fix the search index.
13 What problems does the current behaviour cause?
14 Consider the [[tags]] page.
15 ikiwiki indexes the term "ZStags" for its title.
16 xapian stems this and also indexes "ZZStag".
17 (Notice the additional "Z".)
18 Now when [searching for "title:tags"] [search],
19 xapian stems this and searches for "ZStag",
20 and so only finds pages which were indexed by _ikiwiki_ with "ZStag"
21 (i.e. those pages with the singular "tag" in the title).
23 --Gabriel.
25 [xapian]: http://xapian.org/docs/omega/termprefixes.html
26  [patch]: http://www.gmcmanus.org/0001-Use-correct-term-prefixes-when-searching.patch
27 [search]: http://ikiwiki.info/ikiwiki.cgi?P=title%3Atags
29 [[!tag done]]