Skip to content

Commit

Permalink
allow search by postcode in case they are not in the address field
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Jun 26, 2024
1 parent 813fab4 commit 5c3482f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/search/meilisearch/nominatim.ex
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ defmodule Search.Meilisearch.Nominatim do
displayedAttributes:
~w(id class type name address parents_name parents_postcode extratags bbox boost rank_boosted_areas rank_search rank_address importance),
# order is from most important to least important
searchableAttributes: ~w(name boost address type parents_name type extratags),
searchableAttributes:
~w(name boost address type parents_name parents_postcode type extratags),
sortableAttributes:
~w(importance rank_search rank_address rank_boosted_areas _geo admin_level),
synonyms: synonyms,
Expand Down

0 comments on commit 5c3482f

Please sign in to comment.