Description

Xapian search needs the "case:" flag to successfully create regex search results.

Steps to reproduce

Try to find pages where the word "binding" is inside in this wiki by entering this search term in the search box and pressing the "Text" search button:

re:bindi.*

You won't see any search results.

Now Try this:

case:re:bindi.*

-> Surprise, surprise: You'll get a big list of search results.

Component selection

Details

This wiki

Workaround

Use the "case:" attribute before the "re:" attribute like "case:re:".

Discussion

Xapian does not have full content stored, thus it can't emulate regex search. We don't want to store full content, would make index huge and also could make synthesized queries for regex emulation huge.

Solved now by requiring post processing by moin search (moin search does the regex search then).

Note: if you want some acceleration from xapian when doing regex full content search, try to add some AND term that restricts result set (e.g. have a term for title, category, mimetype, ... that can be processed by xapian). This will give a small page list to moin search, so slow moin search has less stuff to search in.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/1.9.2XapianRegexFullsearchDoesNotWork (last edited 2010-04-03 10:47:36 by ThomasWaldmann)