I keep just getting:
No results
There were no results found for "search term".
When there should be results. I'm upgrading apps to 4.26, and the Search widget just isn't working. I even tried a very simple example, and it's still not working.
'esri/widgets/Search'
Search
// SEARCH WIDGET
const sources = [];
sources.push({
featureLayer: new FeatureLayer({
url: 'OurServer/MapServer/2',
}),
name: 'Service Point',
displayField: 'gs_name',
outFields: ['*'],
searchFields: ['gs_name'],
placeholder: 'Search for customer information.',
maxResults: 3
});
const searchWidget = new Search({
view: view,
sources: sources,
includeDefaultSources: false,
});
view.ui.add(searchWidget, {
position: 'top-left',
index: 0,
});
Super simple, but it just doesn't work. I don't see any network requests either.
Any idea what could be wrong here?