artshumrc / giza

JSON API (for TMS Database) and Django 2 application for Digital Giza
http://giza.fas.harvard.edu/
7 stars 5 forks source link

Tomb search result buried #127

Closed pmanuelian closed 2 years ago

pmanuelian commented 3 years ago

Adjust search results so that "G 2110" (example) shows at top of list, as before, not buried out of order. The older screenshot shows G 2110 at top of list. The new search result makes G 2110 hard to find. Same problem with searching for an object, such as "12.1484" (a statue). The results used to display clearly.

New_G2110_search_reduced Original_easy_G2110_search

Similarly, searching for a line drawing "EG023553" produces either far too many results from the search box on the home page, or no results in advanced search > ID number box.

lukehollis commented 3 years ago

This is likely related to fuzzy string search matching--with no space between "G" and "2110" we get the following results in what appears to be the desired order. Can you confirm that these results are displaying correctly, @pmanuelian @npicardo?

Screen Shot 2021-02-15 at 11 10 46 AM

Whereas if we add a space between "G" and "2110" it seems like we get the less relevant results:

Screen Shot 2021-02-15 at 11 14 25 AM

I'm wondering if changing the way the space is handled would display the correct search results.