<?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: Searching esriFieldTypeDouble in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1211088#M78656</link>
    <description>&lt;P&gt;I am using the search widget. I also updated my version to the current version 4.24.&lt;/P&gt;&lt;P&gt;Here is a snippet on how I create a search source. I even modified it that only the coordinate (an esriFieldTypeDouble) is the only searchable field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  function addToSearchSources(featureLayer: FeatureLayer) {

    const searchSource = new LayerSearchSource({
      layer: featureLayer,
      searchFields: ['NORTHING_ORIGINAL'],
      displayField: featureLayer.displayField,
      exactMatch: false,
      outFields: ["*"],
      name: featureLayer.title,
      placeholder: featureLayer.title,
      suggestionsEnabled: true,
    })
    console.log('searchSource.searchFields', searchSource.searchFields)
    search.sources.add(searchSource);
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logging returns the correct value,&amp;nbsp;&lt;SPAN&gt;NORTHING_ORIGINAL which is a double&lt;/SPAN&gt;&lt;SPAN&gt;. But for some reason I am not able to use columns with double values in search.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2022 11:55:29 GMT</pubDate>
    <dc:creator>PL1</dc:creator>
    <dc:date>2022-09-09T11:55:29Z</dc:date>
    <item>
      <title>Searching esriFieldTypeDouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1209775#M78594</link>
      <description>&lt;P&gt;I am using Arcgis API for Javascript version 4.21.2.&lt;/P&gt;&lt;P&gt;My problem is that I cannot search my feature layers columns that are declared as esriFieldTypeDouble. The declaration has been made in my Mapserver and therefore I can't change the typing. Numbers, declared as esriFieldTypeString can be used in the search, for example ID is a string.&lt;/P&gt;&lt;P&gt;How is it possible to search these columns by using the Search Widget?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 08:55:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1209775#M78594</guid>
      <dc:creator>PL1</dc:creator>
      <dc:date>2022-09-06T08:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Searching esriFieldTypeDouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1210845#M78640</link>
      <description>&lt;P&gt;Are you using the search widget? If so, this should work just fine. Here is an example from the current version (4.24). Try out the Census Block Group locator, which searches on a&amp;nbsp;&lt;SPAN&gt;esriFieldTypeDouble field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://codepen.io/noash/pen/qBYbMXd?editors=1000" target="_blank"&gt;https://codepen.io/noash/pen/qBYbMXd?editors=1000&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 16:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1210845#M78640</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2022-09-08T16:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Searching esriFieldTypeDouble</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1211088#M78656</link>
      <description>&lt;P&gt;I am using the search widget. I also updated my version to the current version 4.24.&lt;/P&gt;&lt;P&gt;Here is a snippet on how I create a search source. I even modified it that only the coordinate (an esriFieldTypeDouble) is the only searchable field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  function addToSearchSources(featureLayer: FeatureLayer) {

    const searchSource = new LayerSearchSource({
      layer: featureLayer,
      searchFields: ['NORTHING_ORIGINAL'],
      displayField: featureLayer.displayField,
      exactMatch: false,
      outFields: ["*"],
      name: featureLayer.title,
      placeholder: featureLayer.title,
      suggestionsEnabled: true,
    })
    console.log('searchSource.searchFields', searchSource.searchFields)
    search.sources.add(searchSource);
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logging returns the correct value,&amp;nbsp;&lt;SPAN&gt;NORTHING_ORIGINAL which is a double&lt;/SPAN&gt;&lt;SPAN&gt;. But for some reason I am not able to use columns with double values in search.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2022 11:55:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/searching-esrifieldtypedouble/m-p/1211088#M78656</guid>
      <dc:creator>PL1</dc:creator>
      <dc:date>2022-09-09T11:55:29Z</dc:date>
    </item>
  </channel>
</rss>

