streetlives / yourpeer.nyc

The open source repository behind the yourpeer.nyc web application
https://yourpeer.nyc
MIT License
0 stars 0 forks source link

Prevent misleading search results #85

Open adambard1 opened 5 months ago

adambard1 commented 5 months ago

Currently, search results that don't contain the searched term appear high up the results list. This is important to fix since those unfamiliar with locations will be directed to incorrect locations

e.g. If I search "streetwork" (the location name of one of the city's most popular service locations) one correct result heads the list, but two incorrect results appear before the next correct result The two incorrect results don't appear to contain the search term or any part of the search term in any field.

Screenshot 2024-05-27 at 10 51 56
doobneek1 commented 5 months ago

image Again, the search shows borowide irrelevant results and the actual clinic is not the first result

doobneek1 commented 4 months ago

https://yourpeer.nyc/locations?search=weil+cornell the most relevant result is not first here, I think the hierarchy of where the match is found should be enforced. image

adambard1 commented 4 months ago

yes, that's meant to be the case - exact matching, with org matching first, location matching second, etc.

doobneek1 commented 4 months ago

https://yourpeer.nyc/locations?search=brooklyn+ghost image the most relevant search result pops up on the left first but the map shows a bunch of irrelevant results, because it starts to search by the word Brooklyn, if it got the exact match it should stop searching for other partial matches

doobneek1 commented 4 months ago

https://yourpeer.nyc/locations?search=fair+fares A lot of irrelevant results here

doobneek1 commented 3 months ago

@jbeard4 not done

adambard1 commented 14 hours ago

image Again, the search shows boroughwide irrelevant results and the actual clinic is not the first result

you didn't share the search you did @doobneek1

adambard1 commented 14 hours ago

Search for "Blanche" completely misses a result for the Blanche Memorial Church. Is this because the only service it contains shows as suspended? (incorrectly as it happens, we don't have any hours/information on the service but it was not suspended - see issue #199 )

Image

adambard1 commented 14 hours ago

Still noticing odd results for partially completed words.

  • e.g., searching 'roosevel' looking for The Roosevelt Hotel (the name of the location, not the org), which is an important site for Newly arrived families to get shelter.

The search does not return The Roosevelt Hotel in the results.

Screenshot 2024-06-19 at 11 22 00
  • If you complete the word 'roosevelt' you get the expected result and a few other results
Screenshot 2024-06-19 at 11 23 11

Originally posted by @adambard1 in #140

adambard1 commented 14 hours ago

If I search for Gotham, I get 2 results, though there are 9 hospitals with the same org name "NYC Health + Hospitals/ Gotham Health" on YourPeer (I can only show them all together through gogetta.nyc/team. Image

"NYC Health + Hospitals/ Gotham" search works pretty well, though it doesn't group all the exact matches at the top. Image

doobneek1 commented 11 hours ago

@jbeard4 not done