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
- set page_category_regex = u'(Kategória:).+'
- put some pages to a category with a space in its name
- create many other pages (hundreds) with the second word of the abovementioned category somewhere in the text
<<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
- xapian
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
I do not believe that in a CamelCase Syntax (e.g. CategoyLinux) there are spaces allowed!
you may try a FullSearch with cat:Linux or linkto:CategoryLinux (if your Category is CategoryLinux)
or if your Categoryname is "CategoryLinux FileSystem" then search like <<FullSearchCached(linkto:"CategoryLinux FileSystem" -title:Category)>> works in my wiki with xapian.
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
- If you use linkto search to find the pages "in" this categories, it will work. category search won't in 1.7 as it uses \S+ for the category key. If you use linkto search, you can't differentiate between pages being IN that category and page mentioning (linking to) that category.
Plan
- Priority:
- Assigned to:
- Status: