<?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 widget (4.13) suggestion does not go to correct result in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752409#M69558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This turned out to not be a problem with the app, widget or javascript related.&amp;nbsp; The cause was the data source was an Oracle DB (non geodata enabled).&amp;nbsp; The services was published with a multi machine ArcGIS Server configuration.&amp;nbsp; Each server machine was applying its own ObjectIds, but the search would not necessarily send it's query back to the same machine (round robin from the web adaptor).&amp;nbsp; Only solution was to stop publishing from Oracle, non geodata enabled database.&amp;nbsp; This database has caused many problems and this issue was the final straw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2019 17:07:33 GMT</pubDate>
    <dc:creator>JoeRogan</dc:creator>
    <dc:date>2019-11-22T17:07:33Z</dc:date>
    <item>
      <title>Search widget (4.13) suggestion does not go to correct result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752407#M69556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using the Search widget in a custom 4.13 app.&amp;nbsp; I have multiple search sources configured.&amp;nbsp; Most of the time this works, however sometimes when clicking on a suggested item it goes to a completely wrong feature.&amp;nbsp; My code for this app is pretty long, if required to post it I wont be able to do that until next Tuesday, so hopefully I can provide enough detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my steps that produce this (sometimes).&amp;nbsp; I enter "4" in the search and have a few suggestions.&amp;nbsp; The search suggestion I click is "V-4278" which represents a chart id.&amp;nbsp; It pans the map to a feature with id "V-4024" which is not what I picked (or even listed in the 5 max suggestions).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To try to dubug this I've inserted the following code which shows something that doesn't make sense to me:&lt;/P&gt;&lt;DIV style="color: #000000; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;searchWidget.on(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;"select-result"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;(event)&amp;nbsp;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(event);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(searchWidget);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;Here is what is output in the console for that click on that suggestion:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;event.result&lt;SPAN style="color: #212121;"&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #565656;"&gt;extent&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;feature&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{…}&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;key&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;14&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;name&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"V-4024"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;sourceIndex&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;6&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV style="font-weight: normal;"&gt;&lt;DIV&gt;&lt;SPAN&gt;searchWidget.suggestions[6].results&lt;SPAN style="color: #212121;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #565656;"&gt;text&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"V-4278"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;key&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;14&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #565656;"&gt;sourceIndex&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;6&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;What I don't get is why do these both have the same key?&amp;nbsp; That seems to be a problem, I just have no idea what the cause is.&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class="" style="color: #212121;"&gt;&lt;SPAN class=""&gt;It also seems that if it goes to the wrong feature, it will always go to the same wrong feature (V-4278 always goes to V-4024, or V-4022 always goes to V-4011).&amp;nbsp; What is also interesting is that when I click a suggestion it doesn't always go to it, sometimes I have to hit enter.&amp;nbsp; When that happens it seems to always go to the correct feature.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2019 21:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752407#M69556</guid>
      <dc:creator>JoeRogan</dc:creator>
      <dc:date>2019-11-08T21:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget (4.13) suggestion does not go to correct result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752408#M69557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to hear about the trouble. I'm not sure what's occurring. A simplified repro case will really help figure out what the issue is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 17:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752408#M69557</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2019-11-11T17:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Search widget (4.13) suggestion does not go to correct result</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752409#M69558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This turned out to not be a problem with the app, widget or javascript related.&amp;nbsp; The cause was the data source was an Oracle DB (non geodata enabled).&amp;nbsp; The services was published with a multi machine ArcGIS Server configuration.&amp;nbsp; Each server machine was applying its own ObjectIds, but the search would not necessarily send it's query back to the same machine (round robin from the web adaptor).&amp;nbsp; Only solution was to stop publishing from Oracle, non geodata enabled database.&amp;nbsp; This database has caused many problems and this issue was the final straw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 17:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-13-suggestion-does-not-go-to/m-p/752409#M69558</guid>
      <dc:creator>JoeRogan</dc:creator>
      <dc:date>2019-11-22T17:07:33Z</dc:date>
    </item>
  </channel>
</rss>

