Last modified: 2014-02-11 00:39:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49761, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47761 - Searches for namespaces only return useless error message ("An error has occurred while searching: The search backend returned an error:")
Searches for namespaces only return useless error message ("An error has occu...
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
lucene-search-2 (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 49675 50403 (view as bug list)
Depends on: 43544
Blocks: 26443
  Show dependency treegraph
 
Reported: 2013-04-27 00:17 UTC by spage
Modified: 2014-02-11 00:39 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2013-04-27 00:17:31 UTC
If I search for Help: or Template: on either meta.wikimedia.org or mediawiki.org, I get an in-page error in red:

An error has occurred while searching: The search backend returned an error: 

(with no text).

E.g. search for Help: or Template: , or on meta search for Research: . But searching for Special: doesn't give an error.

This doesn't happen searching on enwiki.  I don't know for sure if meta and mediawiki use lucene
Comment 2 Andre Klapper 2013-05-12 21:49:20 UTC
Looks like fallout from bug 43544.
Comment 3 Andre Klapper 2013-05-17 12:51:47 UTC
...or eproducible when searching for
    Talk:
on en.wp (I tried reproducing bug 26443).
Comment 4 Emil Jerabek 2013-06-13 10:51:10 UTC
Searching for short strings also produces this error, e.g. http://en.wikipedia.org/w/index.php?search=%40%24&title=Special%3ASearch . There is a discussion at http://en.wikipedia.org/wiki/Wikipedia:Village_pump_%28technical%29#Problems_with_a_special_character .
Comment 5 spage 2013-06-15 03:17:47 UTC
(In reply to comment #4)
The failure isn't caused by short strings alone, since searching for character glyphs such as 'é' works.
To summarize that discussion on enwiki VPT, searching for the character '�' also produces this red error message, as does ':', '@', '$' '!', '-', '+', etc. (All tested on meta-wiki.)

The problem with searching for namespaces like 'Help:' or 'Template:' is not as simple as the presence of the ':' character, since searching for non-existing 'Foo:' produces some results; the search engine seems to ignore the punctuation.
Comment 6 Emil Jerabek 2013-06-17 15:57:39 UTC
(In reply to comment #5)
> (In reply to comment #4)
> The failure isn't caused by short strings alone, since searching for
> character
> glyphs such as 'é' works.
> To summarize that discussion on enwiki VPT, searching for the character '�'
> also produces this red error message, as does ':', '@', '$' '!', '-', '+',
> etc.
> (All tested on meta-wiki.)

Let me venture a guess based on the observed behaviour (I don't actually know anything about the inner working of the search engine). It seems to me that the search engine ignores non-letter characters, presumably deleting them from the search string. It may be that the error is triggered when this deletion results in the empty string: this would explain why 'é' works (it is not deleted, being a letter), '$' doesn't work (it is deleted), and 'abc $' works (the $ is deleted, but there is something left). Also, namespace prefixes are presumably handled in a different way and removed from the actual search string, hence 'Talk:' doesn't work (the resulting string is empty) while 'Talk: zyx' works (the string is nonempty), and 'Foo:' also works (it is not recognized as a prefix, and therefore left in the string).
Comment 7 Andre Klapper 2013-10-18 19:03:17 UTC
This is still an issue on meta (where CirrusSearch is not deployed), but not anymore on mediawiki.org (where CirrusSearch is deployed).
Comment 8 Chad H. 2013-10-29 02:18:10 UTC
*** Bug 49675 has been marked as a duplicate of this bug. ***
Comment 9 Chad H. 2013-10-29 02:27:43 UTC
*** Bug 50403 has been marked as a duplicate of this bug. ***
Comment 10 Dominic 2013-11-01 23:42:59 UTC
I also observed this error message for any search ending in "[.", "].", "(.", or ")." on Wikimedia projects. 

e.g.:
https://en.wikipedia.org/w/index.php?title=Special:Search&search=dvsvsavdasds%5B%2E
https://en.wikipedia.org/w/index.php?title=Special:Search&search=dvsvsavdasds%28%2E
etc.
Comment 11 Martijn Hoekstra 2013-11-30 17:17:48 UTC
Searching for "User:{{unblock reviewed | 1=I came in like a [[Wrecking Ball]].[[User:GMTV Sunshine|GMTV Sunshine]] ([[User talk:GMTV Sunshine#top|talk]]) 17:06, 30 November 2013 (UTC) | decline={{subst:Decline reason here}} ~~~~}}" also gives the same error. Not sure if it's related, but seems so. Also, shame on me for not being able to properly copy paste
Comment 12 Dan Garry 2014-02-11 00:39:07 UTC
This bug is fixed in CirrusSearch. As we're in the process of migrating from Lucene to CirrusSearch, I'm marking this as RESOLVED WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links