Page MenuHomePhabricator

Global Search displays most search results twice
Closed, ResolvedPublic

Description

Global Search displays most search results twice.

For example, in this query: https://global-search.toolforge.org/?q=.*&regex=1&namespaces=8&title=(Wikimedia-copyrightwarning)(%2F.*)%3F

There are 349 results, but if you export them to some tool that lets you remove duplicates, you'll find that there are only 230 unique results.

Previously (last year): T359136: Global-search is showing duplicate results

Event Timeline

Most plausibly the global-search side is picking up indices that are not live on the production side. IIRC this runs queries against the * index, it may have to be a little more selective and use *_content,*_general,*_file

This would essentially happen whenever we are running reindexes, as that causes duplicate indices to exist for some time.

No review came in, went ahead with merge and deploy. Problem looks resolved.

MusikAnimal claimed this task.
MusikAnimal moved this task from Backlog to Done on the Tool-global-search board.

No review came in, went ahead with merge and deploy. Problem looks resolved.

Sorry about that! Not sure where I was ~2 months ago… somehow I missed all the pings. As co-maintainer though you should feel free to self-merge and deploy as you see fit :)

I'm assuming we can call this resolved. The example from the bug report shows 218 results, closer to what was expected.

Thanks for the report and the fix!