dulibrarytech / digitaldu-frontend

Digital Collections DU front end
Apache License 2.0
3 stars 0 forks source link

Elastic search term fuzziness updates #360

Closed jrynhart closed 3 years ago

jrynhart commented 3 years ago
  1. Look into the "phrase" query https://stackoverflow.com/questions/52296280/elasticsearch-get-exact-match-then-fuzzy ]
  2. Look into using fuzzy search on terms that are >4/5 chars in length?_
jrynhart commented 3 years ago

Calling this a bug because searches with shorter terms such as "day" with applied fuzziness cause the search to not work properly

jrynhart commented 3 years ago

Now using fuzzy queries alongside the regular term queries Added config to specify which fields get a fuzzy query Removed fuzziness from regular term queries, the fuzzy hits should return a lower score than the term queries and appear beneath any match query hits in the results list