aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/comments_not_searchable.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-05-06 17:18:08 -0400
committerJoey Hess <joey@kitenet.net>2010-05-06 17:18:08 -0400
commitf0b83af9aadfb5c4755fe9079f1dc97112f49d95 (patch)
treea4cc9c01126493ce0d748b5878e4db9de148bbeb /doc/bugs/comments_not_searchable.mdwn
parentf69026667b523adaad8626fef549944f9d5b91e4 (diff)
downloadikiwiki-f0b83af9aadfb5c4755fe9079f1dc97112f49d95.tar
ikiwiki-f0b83af9aadfb5c4755fe9079f1dc97112f49d95.tar.gz
add
Diffstat (limited to 'doc/bugs/comments_not_searchable.mdwn')
-rw-r--r--doc/bugs/comments_not_searchable.mdwn17
1 files changed, 17 insertions, 0 deletions
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]]