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

Remove fuzziness from es query #163

Closed lukehollis closed 3 years ago

lukehollis commented 3 years ago

Hi all, in response to https://github.com/artshumrc/giza/issues/127 Peter and @npicardo would like to turn off "fuzziness" in the ES query via the 3 changes here.

npicardo commented 3 years ago

@rsinghal @ColeDCrawford Context of this: variability of results from, e.g. G 2100 vs G2100 as search terms. Results for the second option places the desired record at the top of the list, while the first option buries it further down amid often a lot of results. It is hoped that this adjustment will yield more consistently optimal ordering of results. (Number of total results can vary widely, too, but this isn't an issue like ordering.)

rsinghal commented 3 years ago

Sure. Looks like it was added last July by mstur in commit https://github.com/artshumrc/giza/commit/4de9e52c4dd0d5e9db9d1142c21143c1c6b2a3b9 so this would just be reverting back to the original logic.