Description

When you search for text, the results show you excerpts of from the match pages, and is supposed to (used to) highlight your search words wherever they show up in those excerpts.

In 1.7, the highlighting works on some matches, and on others it highlights rather inexplicable sections of the text.

Steps to reproduce

  1. Search for t:help attachment

  2. Examine the bold text in the search results

Example

search_bad_hilite.jpg

Component selection

Details

MoinMoin Version

this wiki (1.7 dev.), xapian search enabled

Workaround

Discussion

The index was built with a different (older) set of underlay pages. Xapian stores term positions in its search indexed and they are used to render search results, highlighting the positions. As I installed different pages (from master17) afterwards, those positions were rather wrong, obviously.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/TextSearchResultsHighlightsWrongText (last edited 2008-06-09 06:49:20 by ThomasWaldmann)