The ArcGIS JavaScript SDK mentioned SearchViewModel as below:
SearchViewModel | API Reference | ArcGIS Maps SDK for JavaScript 4.31 | Esri Developer
activeSourceIndex
PropertyactiveSourceIndex
NumberThe selected source's index. This value is -1 when all sources are selected.
Default Value:0
I tried not a few times with multiple sources and set activeSourceIndex = -1, it actually only searches the first source at the list.
Not sure 1. Anything I might do incorrectly, 2. The server we connected to not set up properly, or 3. ArcGIS JavaScript SDK (version 4.31) not supporting the multiple search sources?
Massive thanks for your kind tips.
Ted