require([
"esri/map",
"esri/dijit/Search",
"dojo/domReady!"
], function (Map, Search) {
// create a streets map
var map = new Map("map", {
basemap: "streets",
center: [-122.67, 45.52], // lon, lat
zoom: 14
});
// initialize search widget to reference the map
var search = new Search({
map: map
autoNavigate: false,
maxSuggestions: 20,
value: "Portland, OR coffee shops"
}, "search");
search.startup();
});