Description

There are some categories with spaces in their names, e.g. Kategória:Historická lingvistika (page_category_regex = u'(Kategória:).+'). When using the <<FullSearch()>> macro and Xapian, some of the pages containing only the word lingvistika (but not included in the category) are displayed in the list. Some of them contain the word historická somewhere too, but I've encountered one that does not (only several similar words).

Steps to reproduce

  1. set page_category_regex = u'(Kategória:).+'
  2. put some pages to a category with a space in its name
  3. create many other pages (hundreds) with the second word of the abovementioned category somewhere in the text
  4. <<FullSearch()>> will display some (out of few hundred) pages not belonging to that category

Example

https://data.juls.savba.sk/std/Kategória%3AHistorická%20lingvistika

Component selection

Details

MoinMoin Version

1.6.3

OS and Version

Linux, debian unstable

Python Version

2.4

Server Setup

Server Details

Language you are using the wiki in en (does not matter)

Workaround

do not use xapian

Discussion

A few inputs

bye -- MarcelHäfner 2008-05-06 12:05:43

(!) Moin's category regex does not match spaces. And even if you made it do that, it would likely cause some malfunction in case there is more text after the category tag. Thus: don't use spaces in category names.

But you can have spaces in category _names_. I am using such a wiki for some time (starting with 1.5), of course, the categories have to be enclosed in square brackets (and indeed, the edit form does this automatically if you have categories with spaces or otherwise not CamelCase compliant). It is only Xapian that has problems. -- RadovanGarabík 2008-05-16 18:53:15

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/XapianSpacesInCategoryNames (last edited 2008-05-16 20:55:16 by ThomasWaldmann)