Page MenuHomePhabricator

MediaSearch results not updated 12 hours after overwriting image
Closed, ResolvedPublic8 Estimated Story Points

Description

It seems to me that the search index for MediaSearch on commons is not updated when a file is replaced.

Steps to reproduce

  1. Upload an image with a resolution of for example 2,048 × 1,536 Pixels
  2. Search in MediaSearch with a CirrusSearch query that finds you image by image dimensions, for example user:Discostu filew:<2049 fileh:<2049
  3. Overwrite your image with a larger file, for example 3,648 × 2,736 pixels
  4. Repeat the same search with MediaSearch

Expected results
The image is not among the search results anymore

Actual results
The image is still among the search results, even 12 hours after the re-upload

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Discostu renamed this task from MediaSearch results don't change aftert re-upload of image to MediaSearch results don't change aftert overwriting image.Mar 23 2021, 8:28 AM
Discostu renamed this task from MediaSearch results don't change aftert overwriting image to MediaSearch results don't change after overwriting image.
Discostu updated the task description. (Show Details)
Aklapper renamed this task from MediaSearch results don't change after overwriting image to MediaSearch results not updated 12 hours after overwriting image.Mar 23 2021, 8:58 AM
Aklapper added a project: SDAW-MediaSearch.

@Discostu do you get this on Special:Search as well?

I didn't try. The search index now seems to be updated, so I can't test with the same file. Would have to try it with another one when I can find the time.

OK, tried now with another file:

Right now (3 minutes after upload) both searches show the file, so index is not updated yet.

Same after 30 minutes.

Same after 7 hours.

Same after 8 hours.

Ok thanks @Discostu - the search indexes are updated via a job that runs after the page itself is updated, so it seems there might be something going wrong in the job queue. We'll check into it

Seems to be getting worse: Still no update after 4 days

Gehel set the point value for this task to 8.Mar 29 2021, 3:32 PM

Change 677504 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/extensions/CirrusSearch@master] Reindex the page on UploadComplete

https://gerrit.wikimedia.org/r/677504

Change 677504 merged by jenkins-bot:

[mediawiki/extensions/CirrusSearch@master] Reindex the page on UploadComplete

https://gerrit.wikimedia.org/r/677504