<?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: Search Component exactMatch possible BUG? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685808#M88173</link>
    <description>&lt;P&gt;Following this. Not sure if this is related, but we have noticed few differences as well. It seems that Search in ExP works differently to Search in Map SDK. For example, when I search "Nora", below are the results I have obtained from Search widget in Map SDK and Search widget from ExP Builder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Search result for "Nora" in Map SDK Search widget -&amp;nbsp;&lt;A href="https://imgur.com/a/XWumpC0" target="_blank"&gt;https://imgur.com/a/XWumpC0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Search result for "Nora" in ExP Search widget -&amp;nbsp;&lt;A href="https://imgur.com/a/sPxLVy6" target="_blank"&gt;https://imgur.com/a/sPxLVy6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The results seem different regardless of the setting. In the ExP builder, we can see the results include the search term being in the middle of the result whereas in the Map SDK version, it always displays the start's with results.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Feb 2026 23:02:07 GMT</pubDate>
    <dc:creator>NZGIS</dc:creator>
    <dc:date>2026-02-22T23:02:07Z</dc:date>
    <item>
      <title>Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685644#M88165</link>
      <description>&lt;P&gt;The search component in 4.34 does not seem to honor exactMatch:False.&amp;nbsp; It will only honor it if the search is in the first characters.&amp;nbsp; Say I am looking for "Driscoll" if I search 'ris' it will not come up, but if I do 'Dri' it will.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In 4.34 the exactMatch: false → prefix only.&amp;nbsp; Where in 4.21 it's like: LIKE '%ris%'&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Wait for your view to be ready
const quickSearch = document.getElementById("quickSearch");
await quickSearch.componentOnReady();

// Assign the map view
quickSearch.view = view;

// Configure only your parcel layer sources
quickSearch.sources = [
  {
    layer: parcelLayer,
    searchFields: ["PartyName_1"],
    name: "Search by Owner",
    exactMatch: false,
    outFields: ["PartyName_1"],
    displayField: "PartyName_1",
    suggestionsEnabled: true,
  },
  {
    layer: parcelLayer,
    searchFields: ["PropertyAddress"],
    name: "Search by Address",
    outFields: ["PropertyAddress"],
    displayField: "PropertyAddress",
    exactMatch: false,
  },
  {
    layer: parcelLayer,
    searchFields: ["QuickRefID_1"],
    name: "Search by Quick Reference ID",
    outFields: ["QuickRefID_1"],
    displayField: "QuickRefID_1",
    exactMatch: false,
  }
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Feb 2026 21:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685644#M88165</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2026-02-20T21:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685808#M88173</link>
      <description>&lt;P&gt;Following this. Not sure if this is related, but we have noticed few differences as well. It seems that Search in ExP works differently to Search in Map SDK. For example, when I search "Nora", below are the results I have obtained from Search widget in Map SDK and Search widget from ExP Builder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Search result for "Nora" in Map SDK Search widget -&amp;nbsp;&lt;A href="https://imgur.com/a/XWumpC0" target="_blank"&gt;https://imgur.com/a/XWumpC0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Search result for "Nora" in ExP Search widget -&amp;nbsp;&lt;A href="https://imgur.com/a/sPxLVy6" target="_blank"&gt;https://imgur.com/a/sPxLVy6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The results seem different regardless of the setting. In the ExP builder, we can see the results include the search term being in the middle of the result whereas in the Map SDK version, it always displays the start's with results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Feb 2026 23:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685808#M88173</guid>
      <dc:creator>NZGIS</dc:creator>
      <dc:date>2026-02-22T23:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685938#M88177</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/327152"&gt;@MatthewDriscoll&lt;/a&gt;&amp;nbsp;This is the expected behavior. The change was introduced in 4.25:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/4.25/#search-performance-improvements" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/4.25/#search-performance-improvements&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This AGOL blog also gives additional insights into why this change may have occurred:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/searching-for-features-in-maps-and-apps" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/searching-for-features-in-maps-and-apps&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 17:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685938#M88177</guid>
      <dc:creator>WesleyO</dc:creator>
      <dc:date>2026-02-23T17:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685940#M88178</link>
      <description>&lt;P&gt;Is there a known fix or do I go create my own?&amp;nbsp; Seems like it makes this component pretty useless for anything other then location.&amp;nbsp;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/973671"&gt;@NZGIS&lt;/a&gt;&amp;nbsp; this is directly related to your problem, it is prefix only now.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 17:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685940#M88178</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2026-02-23T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685944#M88179</link>
      <description>&lt;P&gt;I am not aware of any ways to adjust this through the API. However, adding "%" to the front of your search term should do the trick.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/973671"&gt;@NZGIS&lt;/a&gt;&amp;nbsp;,&amp;nbsp;This feature exists in ExB's Search Widget, but only as a search result rather than a search suggestion. Let me know if there are any questions on this.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 17:24:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685944#M88179</guid>
      <dc:creator>WesleyO</dc:creator>
      <dc:date>2026-02-23T17:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search Component exactMatch possible BUG?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685952#M88180</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-javascript-maps-sdk-ideas/search-component-exactmatch-bring-back-full-text/idi-p/1685947/jump-to/first-unread-message" target="_self"&gt;Idea thread found here.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Solution:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Configure only your parcel layer sources
// Custom getSuggestions bypasses Esri's 5.0 prefix-only behavior
// and restores the old LIKE '%value%' contains search
quickSearch.sources = [
  {
    layer: parcelLayer,
    searchFields: ["PartyName_1"],
    displayField: "PartyName_1",
    name: "Search by Owner",
    outFields: ["PartyName_1"],
    exactMatch: false,
    suggestionsEnabled: true,
    getSuggestions: (params) =&amp;gt; {
      const query = parcelLayer.createQuery();
      query.where = `PartyName_1 LIKE '%${params.suggestTerm.replace(/'/g, "''")}%'`;
      query.outFields = ["PartyName_1"];
      query.returnGeometry = false;
      query.returnDistinctValues = true;
      query.orderByFields = ["PartyName_1"];
      query.num = 6;
      return parcelLayer.queryFeatures(query).then(results =&amp;gt; {
        return results.features.map(f =&amp;gt; ({
          key: f.attributes.PartyName_1,
          text: f.attributes.PartyName_1,
          sourceIndex: params.sourceIndex
        }));
      });
    }
  },
  {
    layer: parcelLayer,
    searchFields: ["PropertyAddress"],
    displayField: "PropertyAddress",
    name: "Search by Address",
    outFields: ["PropertyAddress"],
    exactMatch: false,
    suggestionsEnabled: true,
    getSuggestions: (params) =&amp;gt; {
      const query = parcelLayer.createQuery();
      query.where = `PropertyAddress LIKE '%${params.suggestTerm.replace(/'/g, "''")}%'`;
      query.outFields = ["PropertyAddress"];
      query.returnGeometry = false;
      query.returnDistinctValues = true;
      query.orderByFields = ["PropertyAddress"];
      query.num = 6;
      return parcelLayer.queryFeatures(query).then(results =&amp;gt; {
        return results.features.map(f =&amp;gt; ({
          key: f.attributes.PropertyAddress,
          text: f.attributes.PropertyAddress,
          sourceIndex: params.sourceIndex
        }));
      });
    }
  },
  {
    layer: parcelLayer,
    searchFields: ["QuickRefID_1"],
    displayField: "QuickRefID_1",
    name: "Search by Quick Reference ID",
    outFields: ["QuickRefID_1"],
    exactMatch: false,
    suggestionsEnabled: true,
    getSuggestions: (params) =&amp;gt; {
      const query = parcelLayer.createQuery();
      query.where = `QuickRefID_1 LIKE '%${params.suggestTerm.replace(/'/g, "''")}%'`;
      query.outFields = ["QuickRefID_1"];
      query.returnGeometry = false;
      query.returnDistinctValues = true;
      query.orderByFields = ["QuickRefID_1"];
      query.num = 6;
      return parcelLayer.queryFeatures(query).then(results =&amp;gt; {
        return results.features.map(f =&amp;gt; ({
          key: f.attributes.QuickRefID_1,
          text: f.attributes.QuickRefID_1,
          sourceIndex: params.sourceIndex
        }));
      });
    }
  }
];&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 02 Mar 2026 19:12:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-component-exactmatch-possible-bug/m-p/1685952#M88180</guid>
      <dc:creator>MatthewDriscoll</dc:creator>
      <dc:date>2026-03-02T19:12:39Z</dc:date>
    </item>
  </channel>
</rss>

