<?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 Search Suggestion not correct in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235746#M21970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am using ArcGIS API for javascript 4.12. I have added a search widget into mapview. But the search suggestion is not correct. For example if i am searching 'Search CT' it is showing suggestion as&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;'Search RD'.&amp;nbsp; 'Search CT' is available in data.&amp;nbsp;Please help if you have any idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Sep 2019 04:42:29 GMT</pubDate>
    <dc:creator>SurajJha1</dc:creator>
    <dc:date>2019-09-04T04:42:29Z</dc:date>
    <item>
      <title>Search Suggestion not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235746#M21970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I am using ArcGIS API for javascript 4.12. I have added a search widget into mapview. But the search suggestion is not correct. For example if i am searching 'Search CT' it is showing suggestion as&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;'Search RD'.&amp;nbsp; 'Search CT' is available in data.&amp;nbsp;Please help if you have any idea.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 04:42:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235746#M21970</guid>
      <dc:creator>SurajJha1</dc:creator>
      <dc:date>2019-09-04T04:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search Suggestion not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235747#M21971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/216761"&gt;Suraj Jha&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell us a little bit more about the configuration of your Search widget? Are you searching a Feature Layer? Which fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might have a look at this code sample for inspiration:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/index.html"&gt;Search widget with multiple sources | ArcGIS API for JavaScript 4.12&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you will manage to get it working after some additional research.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Sep 2019 13:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235747#M21971</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2019-09-04T13:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search Suggestion not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235748#M21972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply. We are using map service with layer id as a new feature layer for search.&amp;nbsp;The url is like this&amp;nbsp;&lt;A class="link-titled" href="https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6" title="https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6"&gt;https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6&lt;/A&gt;&amp;nbsp;. We have already tried the sandbox sample suggested by you but there also we have the same issue. The code is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var featureLayerDistricts = new FeatureLayer({&lt;BR /&gt; url:&lt;BR /&gt; "&lt;A class="link-titled" href="https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6" title="https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6"&gt;https://server.com:6443/arcgis/rest/services/folder1/folder2/MapServer/6&lt;/A&gt;&amp;nbsp;",&lt;BR /&gt; popupTemplate: {&lt;BR /&gt; // autocasts as new PopupTemplate()&lt;BR /&gt; title: "My Search",&lt;BR /&gt; overwriteActions: true&lt;BR /&gt; }&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 04:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235748#M21972</guid>
      <dc:creator>SurajJha1</dc:creator>
      <dc:date>2019-09-05T04:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Search Suggestion not correct</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235749#M21973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One thing I would like to mention first time i get incorrect suggestion, after that when i delete couple of characters and re-type those characters I get the correct suggestions if again i do the same same thing I get incorrect suggestions. For example&lt;/P&gt;&lt;P&gt;1)First I type "Search CT" in search box I get "Search RD" as suggestions(Incorrect suggestions).&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I remove CT from Search box and type those(CT) again I get "Search CT" as suggestions (Correct Suggestions)&lt;/P&gt;&lt;P&gt;3) If I repeat step 2 I again get incorrect suggestions "Search RD"&amp;nbsp;&lt;SPAN&gt;(Incorrect suggestions).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Means if I perform step 2,&amp;nbsp; on every alternate search I am getting the correct suggestions. Hope I have explained the problem in details. If required I will provide more info.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 04:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-suggestion-not-correct/m-p/235749#M21973</guid>
      <dc:creator>SurajJha1</dc:creator>
      <dc:date>2019-09-05T04:26:04Z</dc:date>
    </item>
  </channel>
</rss>

