From: Joey Hess Date: Thu, 6 May 2010 21:18:08 +0000 (-0400) Subject: add X-Git-Tag: 3.20100515~80 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f0b83af9aadfb5c4755fe9079f1dc97112f49d95?ds=sidebyside add --- diff --git a/doc/bugs/comments_not_searchable.mdwn b/doc/bugs/comments_not_searchable.mdwn new file mode 100644 index 000000000..72f7bf30f --- /dev/null +++ b/doc/bugs/comments_not_searchable.mdwn @@ -0,0 +1,17 @@ +The text of comments (and other internal pages) does not get indexed by the +search plugin. + +Search indexes content passed to the postscan hook. +Comments are inlined, but inline's speed hack avoids adding inlined +content to the page until the format hook. + +And hmm, that's somewhat desirable, because we don't want searches +to find content that is inlined onto another page. + +That suggests that the fix could be to call the postscan hook +for internal pages. + +However, the search postscan hook tells xapian the page url, +and uses `urlto($page)` to do it. And that won't work for +an internal page. Guess it could be modified to tell xapian the +permalink. --[[Joey]]