]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Search_summary_includes_text_from_navigational_elements.mdwn
fixed
[ikiwiki.git] / doc / bugs / Search_summary_includes_text_from_navigational_elements.mdwn
1 Each listed result for a search will show some example text from the beginning of the linked page.  It strips out HTML elements, but if there's any navigational text items, they will stay.
2
3 For example, each search result on ikiwiki.info shows "(title) ikiwiki/ (title) Edit RecentChanges History Preferences Discussion" at the start of its results.
4
5 A way to name some CSS ids that should be removed in search results within the ikiwiki setup file would work.  Here's something similar that a friend proposed:
6
7 http://leaf.dragonflybsd.org/mailarchive/users/2009-11/msg00077.html
8
9 (bin attachment on that page is actually a .diff.)
10
11 > So I was looking at this and I relized that while the search plugin used
12 > to use the format hook, and so there was no way to avoid it seeing all
13 > the gunk around the page body, it was changed a while ago for different
14 > reasons to use its own hook, postscan. So there's really no reason not
15 > to move postscan so it runs before said gunk is added to the page.
16 > (Aside from a small risk of breaking other third-party plugins that
17 > somehow use postscan.)
18
19 > I've implemented that in git, and it drops the navigation elements nicely.
20 > It's perhaps less general than allowing specific divs to be skipped from
21 > search, but it seems good enough. Please thank the dragonfly guys for their
22 > work on this. [[done]] --[[Joey]]