Description

With Xapian Search the FullSearch and PageList Macro always shows attachment, too.

So maybe the wiki page should be a mimetype too. I talked about this to ThomasWaldmann on #moin.

Steps to reproduce

  1. Create some pages
  2. Upload a lot of PDF files and try out some PageList  <<PageList(Python)>>  or a FullSearch with title:

  3. interesting is that only searching for pdf works <<FullSearch(tilte:python mimetype:application/pdf)>>

http://lotek.heavy.ch/PageListWithAttachments

Example

Bildschirmfoto.png

Component selection

Details

MoinMoin Version

1.6.3

OS and Version

linux

Python Version

2.5.2

Server Setup

WSGI Apache2

Server Details

Xapian and PyStemmer

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

de

Workaround

<<FullSearch(title:python -mimetype:application/pdf -mimetype:application/zip -mimetype:application/x-bzip2 -mimetype:application/octet-stream)>>

Discussion

I'm using now some syntax like  <<PageList(Python mimetype:text/wiki)>>  is this correct (atleast it works on my example/test)?

Should this behavior for PageList not to be the default (not showing attachment)?

You said text/<format>; what other format are possible? only the stuff in "/MoinMoin/formatter/" ?

Would is this fix compatible with using sometimes xapain and sometimes only moinmoin_search (just wondering)?

Xapian need exact match of the MimeType

There is now an other problem, if I want to find e.g only PDFs:

no files found (mimetype=application)

pdf files found (change - mimetype=application/pdf)

ideas:

  1. It should be possible to allow searches for only the group mimetype e.g. application, audio files, etcetera (atleast if they're still be displayed in the FindPage form)

  2. the detail mimetypes should be displayed like "pdf (application/pdf)" so it would be possible to type the first letters in the box/form to find it.
  3. the user don't know how he can search for only wiki pages (or just hiding the attachments), maybe it should show up as mimetype (wiki) or even better another checkbox for "don't display attachments".

Enviroment: Using latest changeset for MoinMoin1.6.x, Xapian 1.0.4 and PyStemmer 1.0.1

<!> Should I fill this as a new bug report?

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/XapianPageListDisplaysAttachmentsToo (last edited 2008-05-27 09:48:03 by MarcelHäfner)