Rubygems.org: Exactly matching gem is displayed twice in search

Created on 31 Mar 2018  路  5Comments  路  Source: rubygems/rubygems.org

2018-03-31 9 02 06
This is redundant

Suggestion

  • Remove EXACT MATCH
    2018-03-31 9 03 52

OR

  • Remove from the list
    2018-03-31 9 04 25
design enhancement

All 5 comments

I'm not quite familiar with ElasticSearch. But if we think it's not good design, just remove exactly matched one from search results.

https://github.com/rubygems/rubygems.org/blob/5fad5e51ce8291f59f9165d183cc6c27f521cea6/app/controllers/searches_controller.rb#L8

@segiddins @m1kit I'll like to handle this issue

I was able to set up the application locally but I haven't been able to replicate the issue stated above.

This is what is displayed when I search for a gem e.g capybara on my local
image

This is what is displayed when I search for the same gem on production
image

I'll be truly grateful if someone can point me in the right direction. Thank you
@m1kit @segiddins

This is what is displayed when I search for a gem e.g capybara on my local

When only one gem is found in search result, we redirect directly to the gem page (code). If you really care about your local set up matching our prod, you can load our data dump. Alternatively, you can also create more gems with capybara word in it using rails c.

Closed by #2140

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nyaapa picture nyaapa  路  4Comments

cjyclaire picture cjyclaire  路  8Comments

grosser picture grosser  路  6Comments

h0jeZvgoxFepBQ2C picture h0jeZvgoxFepBQ2C  路  4Comments

MatzFan picture MatzFan  路  5Comments