Skip to content

Fix: Geographic Location typeahead suggestions not working for values like "United States"

Josh Wier requested to merge 20220113-jww-geographic_location_typeahead_fix into master

This was a bug specifically with the "exact match" logic that makes sure things like "United States" show up first in your typeahead suggestions when you type "United States", even though, by our normal logic, many other things would be ranked higher (e.g., "United States, Georgia"; "United States, Georgia, Fulton County, Atlanta"; etc, all of which contain the string "United States" and are related to more items than the United States geoloc is).

This bug only occurred when an exact match existed but was not in the first five items when sorting by item count.

Merge request reports

Loading