The ArcGIS JavaScript SDK mentioned SearchViewModel as below:
SearchViewModel | API Reference | ArcGIS Maps SDK for JavaScript 4.31 | Esri Developer
The selected source's index. This value is -1 when all sources are selected.
Solved! Go to Solution.
Sorry for my post. I did mis firing.
It works as expected actually.
Just configuring the multiple search sources within search view model and set the "activeSourceIndex = -1" then you could do multiple source search.
Sorry for my mis firing.
The search widget works perfectly with multiple search sources.
Not sure what "All" menu did with searchViewModel internally?
How could we only change searchViewModel or search without the popup template to select "All" to get the search multiple search sources working? Probably only change "activeSourceIndex = -1" is not enough?
The pop up "All" menu probably did more than "activeSourceIndex = -1" to get the multiple search sources working perfectly?
Thanks
Sorry for my post. I did mis firing.
It works as expected actually.
Just configuring the multiple search sources within search view model and set the "activeSourceIndex = -1" then you could do multiple source search.
Sorry for my mis firing.