Closed myleshyson closed 6 months ago
And better can you add back the parent call so that people can hook into EVENT_DEFINE_KEYWORDS
to customize how the address field keywords are indexed.
Copy that, thanks for reporting. Out of curiosity, which version of Craft and/or Google Maps are you running?
No problem!
Craft 4.7.3 Google Maps 4.3.11
Good news! Both of these changes are now available in v4.5.1. 👍
See the docs regarding the new event to define keywords.
Can you add a null check to
\doublesecretagency\googlemaps\fields\AddressField::getSearchKeywords
? If that field value is null, then when trying to re-save and update search indexes, that method will throw an exception.I think you can just add something to the top like