The Search widget does not work when an array is passed to the searchExtent property.
Last Published: August 4, 2017ArcGIS API for JavaScript
Bug ID Number
BUG-000105861
Submitted
June 16, 2017
Last Modified
June 5, 2024
Applies to
ArcGIS API for JavaScript
Version found
4.3
Status
Known Limit
After review by the development team, it has been determined that this issue is related to a known limitation with the software that lies outside of Esri's control. The issue's Additional Information section may contain further explanation.
Additional Information
As of 4.4 the searchExtent property has been deprecated. Please use the filter property in its place, passing in the Geometry of the Extent you wish to filter the results. Doc'd at https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html
Workaround
Create multiple sources with the same locator and pass single extents instead of passing multiple extents as a part of an array.