Description
Describe the bug...
Steps to reproduce
- Click URL to get a page with example of search problem:
- 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.
""
- Click lower search button. -- Note that lower search box already has same string as upper search box.
- 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
- general
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:
if titlesearch is the default, users can use search as "quick goto" (if they don't remember a page name) by just typing some fragments and hitting <enter>. if you change it to fulltext search by default, that easy "goto" is gone.
- titlesearch is usually faster and consumes less resources (esp. if NOT using xapian indexed search), so it should be the default because of that also
- there should be the option to directly trigger fulltext search
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
- Priority:
- Assigned to:
- Status:
CategoryMoinMoinBug CategoryMoinMoinBug CategoryMoinMoinBug CategoryMoinMoinBug