Page MenuHomePhabricator

Files uploaded to localwiki and then commons show up twice in search results
Open, LowestPublic

Description

The 'local_sites_with_dupe' only works when commons has the file first. If the file is uploaded to the localwiki first and commons second it can show up twice in the search results.

Event Timeline

EBernhardson raised the priority of this task from to Needs Triage.
EBernhardson updated the task description. (Show Details)
EBernhardson added a project: CirrusSearch.
EBernhardson added a subscriber: EBernhardson.
Restricted Application added a project: Discovery. · View Herald TranscriptJun 29 2015, 10:13 PM
Restricted Application added subscribers: Steinsplitter, Aklapper. · View Herald Transcript

This is easiest to notice when doing something like the following to reset elasticsearch in vagrant:

for i in $(curl -s 'localhost:9200/_cat/indices?v' | egrep 'cirrustestwiki|commonswiki' | sed 's/ \+/ /g' | cut -d ' ' -f 2); do 
    curl -XDELETE http://localhost:9200/$i;
    echo
done; 
foreachwiki extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php
foreachwiki extensions/CirrusSearch/maintenance/forceSearchIndex.php

foreachwiki will run cirrustestwiki before commonswiki, triggering the issue.

Deskana triaged this task as Lowest priority.Dec 31 2015, 5:02 AM
Deskana moved this task from Uncategorised to Scoring and result ordering on the CirrusSearch board.
Deskana moved this task from Needs triage to Search on the Discovery board.
Deskana added a subscriber: Deskana.