Hello! I want to modify the code from the Custom Search function (https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-customsource/) to be able to search for feature/streaming layers on the map that I have imported from the portal. At the moment I have modified the sample code, but I still search for adresses and not feature layers.
How would I do this in the best way?
I am new to ArcGIS and ESRI products so any help would be greatly appreaciated.