diff options
author | http://gmcmanus.myopenid.com/ <http://gmcmanus.myopenid.com/@web> | 2008-07-19 03:04:47 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2008-07-19 03:04:47 -0400 |
commit | c8995955dfefe78894f30ae79863f9c67824f35b (patch) | |
tree | 3f521f2be053b1184dbee8090e29d7ea4949749d | |
parent | 96e5c3ed69eb9dab3aec4619ef900694df5b2b7b (diff) |
new bug and patch
-rw-r--r-- | doc/bugs/search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/bugs/search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn b/doc/bugs/search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn new file mode 100644 index 000000000..ae446b8c3 --- /dev/null +++ b/doc/bugs/search:___34__link__34___and___34__title__34___fields_are_incorrectly_specified.mdwn @@ -0,0 +1,27 @@ +Currently, ikiwiki indexes the "title" and "link" fields of a page +using the prefix "Z". +This is incorrect. +"Z" is for stemmed terms, +which xapian inserts itself. +Furthermore, the custom field "LINK" should use the "X" prefix. +(This is according to the [xapian-omega documentation] [xapian].) + +I have a [patch][] that fixes this. +Once it is applied, +the wiki should be rebuilt to fix the search index. + +What problems does the current behaviour cause? +Consider the [[tags]] page. +ikiwiki indexes the term "ZStags" for its title. +xapian stems this and also indexes "ZZStag". +(Notice the additional "Z".) +Now when [searching for "title:tags"] [search], +xapian stems this and searches for "ZStag", +and so only finds pages which were indexed by _ikiwiki_ with "ZStag" +(i.e. those pages with the singular "tag" in the title). + +--Gabriel. + +[xapian]: http://xapian.org/docs/omega/termprefixes.html + [patch]: http://www.gmcmanus.org/0001-Use-correct-term-prefixes-when-searching.patch +[search]: http://ikiwiki.info/ikiwiki.cgi?P=title%3Atags |