ArcGIS API for JavaScript: SearchableLayers (MapServer)

Built using the ArcGIS API for JavaScript