Description

Using the macro FullSearch (and FullSearchCached) to search for pages in a given category with xapian search enabled, it does not return the pages of that category. If xapian search is disabled the macro works as expected and returns that list. The workaround shown on MoinMoinBugs/1.9.2XapianRegexFullsearchDoesNotWork also works for this issue.

Steps to reproduce

  1. enable xapian_search
  2. <<FullSearchCached(category:CategoryHomepage)>>

Example

URL: http://moin.larpwiki.de/Test/FullSearchCached

== FullSearchCached(category:Kategorie/Test) ==

<<FullSearchCached(category:Kategorie/Test)>>

== FullSearchCached(case:category:Kategorie/Test) ==

<<FullSearchCached(case:category:Kategorie/Test)>>

== FullSearch(category:Kategorie/Test) ==

<<FullSearch(category:Kategorie/Test)>>

== FullSearch(case:category:Kategorie/Test) ==

<<FullSearch(case:category:Kategorie/Test)>>

Component selection

Details

MoinMoin Version

1.9.3

OS and Version

Debian 5.0.5

Python Version

2.5.2

Server Setup

lighttpd 1.4.19-5+lenny

Server Details

fastcgi

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

German

Workaround

Discussion

It seems to be unrelated to the categories containing slashes. In case it is not:

page_category_regex = ur'(?P<all>(Kategorie/)(?P<key>\S+))'

If I use it like

text

----
Kategorie/Test

I can't reproduce it. I have used your defined regex and have rebuild my xapian index.

Looking at the regex I think it is wrong for the given example and used search macro.

text

----
[[Kategorie/Test]]

The defined regex groups for this regex and the example shows

all
Kategorie/Test]]
key
Test]]

This means this won't match with xapians index

The regex you may want to use is (?P<all>(Kategorie/)(?P<key>\w+))

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.9.3FullSearchMacroDoesNotWorkWithXapian (last edited 2010-07-05 21:10:27 by TilmannHaak)