Description

When using Xapian, phrase search acts like an ordinary (non-quoted) search.

Steps to reproduce

  1. Use the MoinMoin site (configured to use Xapian)

  2. Do a text search for the phrase "include white space" (with the quotes). You will get multiple pages of results, and if you click on some of them and search with the browser, you will not find those words in that order.

  3. Perform the same search without the quotes, and it will match exactly the same set of pages. This shows that the quotes have no effect.
  4. To bypass Xapian, perform the same search as a regular expression: r:"include white space". This will only find a couple of pages, and they will all contain the exact phrase.

    • Better yet, perform this control on a different installation w/o Xapian, and simply verify that the phrase search returns fewer matches than when the quotes are omitted, and that those pages actually contain the phrase.

This seems to work in 1.9 for wiki pages but not for attachments. -- ReimarBauer 2009-11-28 11:01:53

Component selection

Details

MoinMoin Version

this wiki (version 1.8 beta/rc), tested on 2008-09-25

Server Setup

Using Xapian

Workaround

Remember to preced phrase searches with r: . Regex searches perform exact match if you don't use special characters. (This of course means you'll have to also escape any special characters that might be in your phrase...).

Discussion

I am assuming this is a Xapian-only problem, because I have not made my own installation of the 1.8 beta version. Phrase search without Xapian has worked fine for me with every previous version I've tried (1.3.x, 1.5.x, 1.6). I am assuming that the moinmo.in site is configured to use Xapian (as of today, 2008-09-25). If I'm wrong, please correct me.

SystemInfo tells:

Xapian search
    Enabled, Xapian 1.0.5, index available, last modified: 2008-09-25 21:22:59
Stemming for Xapian
    Enabled (danish dutch english finnish french german german2 hungarian italian kraaij_pohlmann lovins norwegian porter portuguese romanian russian spanish swedish turkish)

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/XapianBreaksPhraseSearch (last edited 2009-11-28 11:01:53 by ReimarBauer)