Hello!
I am attempting to create a modified version of Esri's search widget within Experience builder with additional functionality such as phonetic searching. I am however having troubles identifying where I would insert such an algorithm in code as there are a lot of different files and functions dedicated towards the search widget. Would anyone be able to point me in the right direction?
Hi @HDan02 i've probably not the complete answer to your question, but i think this topic from @JeffreyThompson2 can help you to understand how to insert correctly your code inside of the actual search widget : https://community.esri.com/t5/experience-builder-tips-and-tricks/modifying-esri-widgets-and-making-t...
https://doc.arcgis.com/en/arcgis-online/manage-data/create-locator.htm
From your question, it sounds like you may need to build a custom geolocator in your Online/Enterprise Portal. I can't really advise you on how to do that. Hopefully, the link above can get you started. Once you have a working geolocator, you should be able to use it by just adding it as a Locator Source in the Search Widget.
If you want to make modifications inside the Search Widget, the link in @JasonBOCQUET's post should be a good start.
@JeffreyThompson2 I'm not using the search function to lookup places spatially. The use case of this custom widget will be for looking up strings in a database of existing street names.
In that case, I recommend starting from scratch. It is usually easier than trying to modify an ESRI widget.