Duplicate questions in the search index

RESOLVED FIXED in 2013Q3

Status

P1
normal
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: rrosario, Assigned: willkg)

Tracking

unspecified
2013Q3

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=user c=search p=2 s=2013.13)

(Reporter)

Description

5 years ago
Something is causing questions to appear in the index multiple times.

See:
https://support.mozilla.org/en-US/forums/contributors/709276

An example is:
https://support.mozilla.org/search?q=&asked_by=dick888&answered_by=&w=2&a=1&sortby=1

Although, that might go away as soon as we reindex.
(Reporter)

Comment 1

5 years ago
Working on this now.
Assignee: nobody → rrosario
I wonder if we're indexing a question by different document ids in different places. Maybe the update_questions_vote_task (or whatever it's called) is using a different document id than we're using in the indexing methods in QuestionMappingType (or whatever it's called)?
(Reporter)

Comment 3

5 years ago
Putting into the next sprint as I haven't had a chance to dig too deep here. Unassigning myself in case somebody else can get to it first.

Making it a 2pt as a initial guess. I looked a little and it didn't look like a quick thing to troubleshoot.
Assignee: rrosario → nobody
Whiteboard: u=user c=search p= s=2013.12 → u=user c=search p=2 s=2013.13
Grabbing this one to look into.
Assignee: nobody → willkg
Fix landed in master in https://github.com/mozilla/kitsune/commit/fecf18a

This will prevent new duplicate questions, but we need to wipe the index of the old ones. I'll do that later today.
Pushed out a two-step reindexing and the problem questions are now gone.

I did a grep across the codebase for other instances of document_id and didn't see any.

I no longer see duplicate questions in the urls provided in the description.

I'm pretty sure fecf18a should fix this issue.
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: 2013Q2 → 2013Q3
You need to log in before you can comment on or make changes to this bug.