<?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.7) using a Map Service - not returning results in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257536#M23898</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I wouldn't think of that as a hack. It is more of a requirement as the search needs to know which fields it will be working with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 16:02:51 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-04-27T16:02:51Z</dc:date>
    <item>
      <title>Search Widget (4.7) using a Map Service - not returning results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257533#M23895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to query a map service using&amp;nbsp;the Search Widget (4.7).&amp;nbsp; The widget works fine when selecting from one of the list of suggested values as I begin typing.&amp;nbsp;&amp;nbsp;When entering complete values (and hitting enter or the search icon), it returns "No Results", even when the value is valid.&amp;nbsp; &amp;nbsp;I tried publishing the same data to AGOL, to test if its an issue with the map service.. and sure enough&amp;nbsp;all works well with a feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else experienced this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my code for reference:&lt;/P&gt;&lt;P&gt;var searchSources = [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp; {&lt;BR /&gt; featureLayer: {&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F...%2Farcgis%2Frest%2Fservices%2FPublic%2FParcelsTest%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;https://.../arcgis/rest/services/Public/ParcelsTest/MapServer/0&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; },&lt;BR /&gt; searchFields: ["TAXLOT"],&lt;BR /&gt; displayField: "TAXLOT",&lt;BR /&gt; name: "Taxlot Search",&lt;BR /&gt; placeholder: "Enter Taxlot Number",&lt;BR /&gt; popupOpenOnSelect: true,&lt;BR /&gt; maxResults: 6,&lt;BR /&gt; maxSuggestions: 6,&lt;BR /&gt; suggestionsEnabled: true,&lt;BR /&gt; minSuggestCharacters: 5&lt;BR /&gt; }&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 23:25:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257533#M23895</guid>
      <dc:creator>AdamCrateau1</dc:creator>
      <dc:date>2018-04-24T23:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget (4.7) using a Map Service - not returning results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257534#M23896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Adam,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; Does the service have the query capability and have the ObjectId and shape fields visible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 00:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257534#M23896</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-04-25T00:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget (4.7) using a Map Service - not returning results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257535#M23897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes the service has Data,&amp;nbsp;Map and Query operations allowed.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The service has all fields visible.&amp;nbsp; Your comment got me heading down the right path though.&amp;nbsp; &amp;nbsp;I added the outFields property to the search source object, and included the&amp;nbsp;ObjectID and Shape fields...it works now!&amp;nbsp; &amp;nbsp;This feels like a hack,&amp;nbsp;but glad its working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257535#M23897</guid>
      <dc:creator>AdamCrateau1</dc:creator>
      <dc:date>2018-04-27T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search Widget (4.7) using a Map Service - not returning results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257536#M23898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I wouldn't think of that as a hack. It is more of a requirement as the search needs to know which fields it will be working with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 16:02:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/search-widget-4-7-using-a-map-service-not/m-p/257536#M23898</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-04-27T16:02:51Z</dc:date>
    </item>
  </channel>
</rss>

