<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a bug with the Search widget for 4.26? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265827#M80492</link>
    <description>&lt;P&gt;I found out what was wrong not too long after posting, but for some reason I couldn't find this post, so I thought it was deleted or something.&lt;/P&gt;&lt;P&gt;Anyway, the problem is that &lt;STRONG&gt;featureLayer&lt;/STRONG&gt; has been changed to just &lt;STRONG&gt;layer&lt;/STRONG&gt;&amp;nbsp;now. Once I made that change, then it worked.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sources.push({
    layer: new FeatureLayer({
        url: 'OurServer/MapServer/2',
    }),
    name: 'Service Point',
    displayField: 'gs_name',
    outFields: ['*'],
    searchFields: ['gs_name'],
    placeholder: 'Search for customer information.',
    maxResults: 3
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Mar 2023 23:47:24 GMT</pubDate>
    <dc:creator>_____</dc:creator>
    <dc:date>2023-03-08T23:47:24Z</dc:date>
    <item>
      <title>Is there a bug with the Search widget for 4.26?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265259#M80481</link>
      <description>&lt;P&gt;I keep just getting:&lt;/P&gt;&lt;DIV class=""&gt;No results&lt;/DIV&gt;&lt;DIV class=""&gt;There were no results found for "search term".&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;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.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'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,
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Super simple, but it just doesn't work. I don't see any network requests either.&lt;/P&gt;&lt;P&gt;Any idea what could be wrong here?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 23:45:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265259#M80481</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2023-03-08T23:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a bug with the Search widget for 4.26?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265824#M80491</link>
      <description>&lt;P&gt;There doesn't seem to be anything wrong with what you have as far as I can tell.&amp;nbsp; However, changes made to the Search widget in 4.25 have caused some folks to notice *apparently* missing results, so If you're upgrading from a version prior to 4.25, you might check out &lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-25-deep-searching-feature-layer/m-p/1234281" target="_self"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 23:34:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265824#M80491</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-03-08T23:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a bug with the Search widget for 4.26?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265827#M80492</link>
      <description>&lt;P&gt;I found out what was wrong not too long after posting, but for some reason I couldn't find this post, so I thought it was deleted or something.&lt;/P&gt;&lt;P&gt;Anyway, the problem is that &lt;STRONG&gt;featureLayer&lt;/STRONG&gt; has been changed to just &lt;STRONG&gt;layer&lt;/STRONG&gt;&amp;nbsp;now. Once I made that change, then it worked.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;sources.push({
    layer: new FeatureLayer({
        url: 'OurServer/MapServer/2',
    }),
    name: 'Service Point',
    displayField: 'gs_name',
    outFields: ['*'],
    searchFields: ['gs_name'],
    placeholder: 'Search for customer information.',
    maxResults: 3
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 23:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-a-bug-with-the-search-widget-for-4-26/m-p/1265827#M80492</guid>
      <dc:creator>_____</dc:creator>
      <dc:date>2023-03-08T23:47:24Z</dc:date>
    </item>
  </channel>
</rss>

