Page MenuHomePhabricator

Search for: Template:First government of returns error
Closed, DeclinedPublic

Description

Author: aymatth2

Description:
I want to create a page named "Template:First government of Napoleon" on en.Wikipedia. When I search for (no quotes)

Template:First government of Napoleon

I get:

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

I get the same error with

Template:First government of

but do not get the error with

Template:First government

or

Template:Government of Napoleon

which both return, e.g.

You may create the page "Template:First government", but consider checking the search results below to see whether the topic is already covered.

Version: unspecified
Severity: normal
Whiteboard: cirrus-fixed

Details

Reference
bz62784

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:59 AM
bzimport set Reference to bz62784.
bzimport added a subscriber: Unknown Object (MLST).

Confirming for https://en.wikipedia.org/w/index.php?search=Template:First government of Napoleon&title=Special%3ASearch&fulltext=Search&srbackend=LuceneSearch

but no error with our new CirrusSearch backend that will become default at some point: https://en.wikipedia.org/w/index.php?search=Template:First%20government%20of%20Napoleon&title=Special%3ASearch&fulltext=Search&srbackend=CirrusSearch

aymatth2 wrote:

This may be a database corruption problem, therefore not cirrus-fixed.(In reply to Andre Klapper from comment #1)

Confirming for https://en.wikipedia.org/w/index.php?search=Template:First
government of
Napoleon&title=Special%3ASearch&fulltext=Search&srbackend=LuceneSearch

but no error with our new CirrusSearch backend that will become default at
some point:
https://en.wikipedia.org/w/index.php?search=Template:
First%20government%20of%20Napoleon&title=Special%3ASearch&fulltext=Search&srb
ackend=CirrusSearch

Huh? Can you elaborate about DB corruption? I get search results listed when using the CirrusSearch backend, but primary backend currently is LuceneSearch.

aymatth2 wrote:

(In reply to Andre Klapper from comment #3)

Huh? Can you elaborate about DB corruption? I get search results listed when
using the CirrusSearch backend, but primary backend currently is
LuceneSearch.

When I try with test2.Wikipedia, https://test2.wikipedia.org/w/index.php?search=Template%3AFirst+government+of+Napoleon&title=Special%3ASearch&go=Go, I get the expected "There were no results matching the query." But that is obviously not pointing to the main live WP database.

In the production version, the error appears with any search starting with "Template:First government of", e.g. https://en.wikipedia.org/w/index.php?title=Special%3ASearch&profile=default&search=Template%3AFirst+government+of+xxx&fulltext=Search

It is hard to see that string being hard-coded into the software, so it seems more likely that there is something odd in the database. Just a guess... If it works for you with the CirrusSearch backend pointing to the production database, that is obviously not the problem. But it is a bit strange if the software is sensitive to that string.

aymatth2 wrote:

O.k. - duh - I see that you did try with CirrusSearch backend pointing to the production database, and results were o.k. Not worth worrying about.

It is a problem in lsearchd. Could be anything though .I've been suspecting enwiki search index corruption for some weeks now with lsearchd...

It's fixed by default in Cirrus because we don't report such vague errors like this nor is our index corrupted.

Moving and marking WONTFIX as appropriate.