= Description = With Xapian Search the FullSearch and PageList Macro always shows attachment, too. * If you use the PageList Macro you don't want to get also attachment displayed in your pagelist. Or in my eyes you should be able to disable/enable this "feature" (like -mimetype:*). * Only displaying pdf is working with a syntax like mimetype:application/pdf So maybe the wiki page should be a mimetype too. I talked about this to ThomasWaldmann on #moin. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. Create some pages 2. Upload a lot of PDF files and try out some PageList {{{ <> }}} or a FullSearch with title: 3. interesting is that only searching for pdf works {{{<>}}} http://lotek.heavy.ch/PageListWithAttachments == Example == ##Add URL that show the bug, screenshot or test wiki markup that fail... ##URL: ##attachment:screenshot.png [[attachment:Bildschirmfoto.png]] ##{{{ ##Example wiki markup that fail ##}}} == Component selection == ## Where you think is this bug happening ? (general, plugin [plugin name], theme [theme name], ... * xapian, mimetypes == Details == ## If you got a traceback, please save the traceback page as html and attach here: ## attachment:traceback.html ## if the bug is in this wiki, just kill the table and write: This Wiki. ## If a traceback is not available, please fill in the details here: || '''!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 == ## How to deal with the bug until it is fixed * using - (NOT) for every mimetype you don't want to see in your PageList: {{{ <> }}} * using something like -mimetpye:application/* doesn't work = Discussion = I'm using now some syntax like {{{ <> }}} is this correct (atleast it works on my example/test)? * if you only want to find `#format wiki` pages, yes. Should this behavior for PageList not to be the default (not showing attachment)? * Well, as it is called '''Page'''``List, yes. But otoh, we are transitioning to pages and attachments as items, so it will be !ItemList in future anyway. You said text/; what other format are possible? only the stuff in "/MoinMoin/formatter/" ? * yes, anything you have a parser for. Would is this fix compatible with using sometimes xapain and sometimes only moinmoin_search (just wondering)? * since latest changeset in 1.7: yes :) == Xapian need exact match of the MimeType == There is now an other problem, if I want to find e.g only PDFs: * Using FindPage and set the mimetype to "application" (anyway - no sane user whould scroll hundreds of mimetypes to find the .pdf; there it would be better to display only the name of the mimetype) * adding some text like ''python'' and go no files found (mimetype=application) * http://lotek.heavy.ch/FindPage?action=fullsearch&advancedsearch=1&and_terms=python&or_terms=¬_terms=&mtime=&categories=&language=&mimetype=application pdf files found (change - mimetype=application/pdf) * http://lotek.heavy.ch/FindPage?action=fullsearch&advancedsearch=1&and_terms=python&or_terms=¬_terms=&mtime=&categories=&language=&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 [[http://hg.moinmo.in/moin/1.6/rev/3fc165a8bfcc|MoinMoin1.6.x]], Xapian 1.0.4 and PyStemmer 1.0.1 Should I fill this as a new bug report? That's rather a feature request. For xapian search, the full mimetype is indexed, so if you want to find it, you have to search for the full mimetype. * [[MoinMoinBugs/XapianFindPageFormWorksOnlyForFullMimeType|Bug Report]] because the FindPage form offering something what Xapian not can handle, yet! * [[FeatureRequests/XapianMimeTypeSearchAndFindPageForm|Feature Request]] because I would like to have a more flexible mimetype searching = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: workaround: * http://hg.moinmo.in/moin/1.7/rev/a53307694ba3 Xapian mimetype search: consistently use a Keyword for mimetype, use text/ as mimetype for pages * http://hg.moinmo.in/moin/1.6/rev/1829d890e862 same for 1.6 * http://hg.moinmo.in/moin/1.7/rev/25822f14e4ea mimetype search for builtin search * http://hg.moinmo.in/moin/1.6/rev/f2a31195668e same for 1.6 ---- ## If you are a moin core developer, replace the category to Category* in these cases: ## Category MoinMoinNoBug - if this is not a bug. ## Category MoinMoinBugConfirmed - if you can confirm the bug on current code. ## Category MoinMoinBugFixed - after the bug is fixed in current code. CategoryMoinMoinBugFixed