Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter out duplicate search results #3911

Closed
wants to merge 1 commit into from
Closed

Filter out duplicate search results #3911

wants to merge 1 commit into from

Conversation

adamgreg
Copy link

@adamgreg adamgreg commented Jul 5, 2017

Subject: Filter out duplicate search results

Feature or Bugfix

Bugfix

Purpose

When performing a search using the searchtools.js, if the query includes multiple terms then this can lead to duplicate partial results being added by performObjectSearch().

Detail

This pull request skips duplicate results in displayNextItem() by checking if each result is identical to the last one in the sorted list.

@adamgreg
Copy link
Author

adamgreg commented Jul 5, 2017

I've realised that this approach will not always work - it is possible for performObjectSearch() to find the same object with a partial name match on one term, and a full name match on another, leading to two results with different scores. It is then possible for a different result to be sorted between the two.

@tk0miya
Copy link
Member

tk0miya commented Jul 16, 2017

What should I do for this? Are you trying to fix it now?

BTW, to understand the problem, I'd like to reproduce the problem. Do you have minimal reproducible project?

@tk0miya tk0miya added this to the 1.6.4 milestone Jul 16, 2017
@tk0miya
Copy link
Member

tk0miya commented Sep 6, 2017

Any updates? If none, I will reject this.

@tk0miya tk0miya modified the milestones: 1.6.5, 1.6.4 Sep 6, 2017
@tk0miya tk0miya closed this Oct 20, 2017
@tk0miya
Copy link
Member

tk0miya commented Oct 20, 2017

I'm closing this now. Feel free to re-reopn this PR again.
Thanks,

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants