Description

If I save a wiki page with "trivial change" the Xapian index does not get updated. Because of this it's not possible to find this added or corrected content.

Steps to reproduce

  1. create a page and save it
  2. edit the page, add some text and save it with "trivial change"
  3. make a fullsearch for this added text
  4. you can't find it!

Example

Maybe not working; if somebody rebuild the index from time to time

Component selection

Details

MoinMoin Version

1.7.x and 1.8.0 (e.g. this wiki)

OS and Version

Linux

Python Version

Server Setup

Xapian

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

I can't reproduce it. -- ThomasWaldmann 2008-12-18 21:01:40

It looks to me that this is an encoding issue. If I use the following link I get a result.

search test

http://moinmo.in/RecentChanges?action=fullsearch&context=180&value=chuchichästli&fullsearch=Text

The question is now why in your example chuchichästli is written as chuchich%C3%A4stli ?

Another question is what does happened to the highlight in this result? Sometimes I do see only chuchichäst highlighted.

And sometimes i don't get a result by this search too.

Testing

This Wiki

On this Wiki I could reproduce this in this way: For example:

Another Wikis

1.8 - without Umlauts

<!> I also could reproduce the on my wiki http://lotek.heavy.ch/test (without any umlauts)

Python Version
    2.5 (r25:51908, Jun 8 2007, 06:03:36) [GCC 3.4.6 20060404 (Red Hat 3.4.6-8)]
MoinMoin Version
    Version 1.8.0 [Revision release]
Xapian-Suche
    Aktiviert, Xapian 1.0.4, Index verfügbar, zuletzt geändert: 2008-12-18 23:38:46

1.7

<!> Another test with an old Moin 1.7... same behavior, saving page in "trivial mode" and the page could not found anymore (with titel or text search).

-- MarcelHäfner 2008-12-18 23:40:25

it looks to me that the event handler does miss an entry for the TrivialPageChangedEvent. -- ReimarBauer 2009-01-11 22:13:46

   1 diff -r 36f2b2adce52 MoinMoin/events/xapian_index.py
   2 --- a/MoinMoin/events/xapian_index.py	Fri Jan 09 00:50:09 2009 +0100
   3 +++ b/MoinMoin/events/xapian_index.py	Sun Jan 11 23:07:23 2009 +0100
   4 @@ -69,7 +69,7 @@
   5          handle_renamed(event)
   6      elif isinstance(event, ev.PageCopiedEvent):
   7          handle_copied(event)
   8 -    elif isinstance(event, ev.PageChangedEvent):
   9 +    elif isinstance(event, ev.PageChangedEvent) or isinstance(event, ev.TrivialPageChangedEvent):
  10          handle_changed(event)
  11      elif isinstance(event, ev.PageDeletedEvent):
  12          handle_deleted(event)
xapian_index.patch

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/TrivialChangesDoesNotUpdateTheXapianIndex (last edited 2009-01-12 11:44:55 by ReimarBauer)