Description

Describe the bug...

Steps to reproduce

  1. Click URL to get a page with example of search problem:


    https://wiki.ubuntu.com/CategoryHardware?action=fullsearch&context=180&value=win95&titlesearch=Titles

  2. Note this result: (As if upper search button was clicked)


    ""
    Your search query "win95" didn't return any results. Please change some terms and refer to HelpOnSearching for more information.
    Consider performing a full-text search with your search terms.
    ""


  3. Click lower search button. -- Note that lower search box already has same string as upper search box.


  4. Note the many results now found: "" Results 1 - 25 of about... ""


    https://wiki.ubuntu.com/CategoryHardware?action=fullsearch&titlesearch=0&value=win95&context=160

Component selection

Details

MoinMoin Version

OS and Version

Python Version

Server Setup

Server Details

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

Workaround

Use lower search-box (WHEN AVAILABLE) for full-text searches.

Discussion

Apparent cause: In the first URL above, the upper search-box defaults to title-search, though the page does not state that anywhere. Thus, any string that is not part of a page-title will produce the problem, and any string that is a part will only produce those associated pages -- neither case giving what the casual user would expect. The suggestion offered merely proposes the user do what they assume they have just done -- and the otherwise useful link therein is effectively invisible, being practically the same color as the surrounding text.

HOWEVER, (color-problem aside) the situation is NOT global:

https://wiki.ubuntu.com/Home?action=fullsearch&context=180&value=abcdefg&titlesearch=Titles

""
You're performing a title search that might not include all related results of your search query in this wiki.
Click here to perform a full-text search with your search terms!
""


PS: Used win95 as the example since no page there will likely ever have that in its title anymore.


The bug you're describing is specific to the Ubuntu Wiki and any theme that provides only a single search button or relies on the user pressing Return/Enter - unlike the "Titles" and "Text" buttons provided in the default Moin theme - where the resulting search is an implicit title search instead of something more comprehensive. I think it would be possible to emulate MediaWiki and to have a combined search operation, but the fact that the Ubuntu Wiki doesn't do it is a "bug" with their theme and perhaps only a desirable feature that is missing from Moin in general. -- PaulBoddie 2013-02-01 13:35:29


Note about the standard theme moin search buttons:

For moin 1.x, we considered changing the buttons (to a single button, to fulltext by default), but we did not implement it due to following reasons:

That's why there are 2 buttons and why titlesearch is the default.

BTW, if you do a titlesearch (and it doesn't find enough), you are offered the fulltext search for same terms as a link, you just need to click on it.

For moin 2, we'll have indexed search always (using whoosh, which is pure python and will always get installed with moin). Thus, we got rid of the buttons completely and have only a simple search field and <enter> triggers the search, see there: http://test.moinmo.in/

Plan


CategoryMoinMoinBug CategoryMoinMoinBug CategoryMoinMoinBug CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/DivergingSearchboxes (last edited 2013-02-01 18:48:08 by dslb-188-099-161-121)