<?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 About Search order in Find Task in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/about-search-order-in-find-task/m-p/206717#M19205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a conceptual question about Find Task in Esri JS API 3.7 (although this isn???t specific to the API version)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Find Task is configured to work on a Dynamic Map Service URL (published on ArcGIS Server 10.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Specific layer IDs have been set in the Find Task parameters (FindParameters.layerIds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Fields to be searched for are set in the searchFields (FindParameters.searchFields) like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;findParams.searchFields=["Name","AliasName","SpaceNumLetter","Address"]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If we do a search for ???Chemistry???, which is present in both Name and AliasName field, which field should be returned in the foundFieldName property of FindResult?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Do they follow the same order as we specified in searchFields (in the code)? OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Does it work in the order fields are created in the layer (in the REST endpoint)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Balaji Viswanathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Oct 2013 22:38:14 GMT</pubDate>
    <dc:creator>BalajiViswanathan1</dc:creator>
    <dc:date>2013-10-25T22:38:14Z</dc:date>
    <item>
      <title>About Search order in Find Task</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/about-search-order-in-find-task/m-p/206717#M19205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a conceptual question about Find Task in Esri JS API 3.7 (although this isn???t specific to the API version)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Find Task is configured to work on a Dynamic Map Service URL (published on ArcGIS Server 10.2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Specific layer IDs have been set in the Find Task parameters (FindParameters.layerIds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Fields to be searched for are set in the searchFields (FindParameters.searchFields) like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;findParams.searchFields=["Name","AliasName","SpaceNumLetter","Address"]&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If we do a search for ???Chemistry???, which is present in both Name and AliasName field, which field should be returned in the foundFieldName property of FindResult?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Do they follow the same order as we specified in searchFields (in the code)? OR&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Does it work in the order fields are created in the layer (in the REST endpoint)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Balaji Viswanathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Oct 2013 22:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/about-search-order-in-find-task/m-p/206717#M19205</guid>
      <dc:creator>BalajiViswanathan1</dc:creator>
      <dc:date>2013-10-25T22:38:14Z</dc:date>
    </item>
  </channel>
</rss>

