<?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 Find Task &amp;quot;contains&amp;quot; parameter default value - bug? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-task-quot-contains-quot-parameter-default/m-p/76135#M351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I'm using Runtime's &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Tasks_Query_FindTask.htm" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;Find Task&lt;/A&gt;&lt;/STRONG&gt; in order to find all features in a map service layer containing a specified string.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;According to &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/net/desktop/api-reference//html/P_Esri_ArcGISRuntime_Tasks_Query_FindParameters_Contains.htm" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;documentation&lt;/A&gt; the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; parameter is true (i.e. search is performed for a &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;partial&lt;/STRONG&gt; and &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;not&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;exact&lt;/STRONG&gt; match).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;In practice, however, the search is always performed for an &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;exact&lt;/STRONG&gt; match - whether&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; is set to either &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;true&lt;/STRONG&gt; or &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;false&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;After "sniffing" the actual REST URL generated by the task, I think I found the problem.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;When &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; is set to true - the generated REST URL doesn't have the "contains" URL parameter at all, because it assumes the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;true&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Unfortunately, REST API (at least in ArcGIS Server version &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;10.2.2&lt;/STRONG&gt; that I'm currently using) for Map Service's &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Find&lt;/STRONG&gt; method falsely assumes the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;false&lt;/STRONG&gt;, contrary to its own &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/rest/apiref/find.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Is this a bug in 10.2.2?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Is there any workaround for this issue, except generating my own REST "find" request and parsing the results (from JSON)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Alexander.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 22 Mar 2015 14:01:42 GMT</pubDate>
    <dc:creator>AlexanderGleyzer</dc:creator>
    <dc:date>2015-03-22T14:01:42Z</dc:date>
    <item>
      <title>Find Task "contains" parameter default value - bug?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-task-quot-contains-quot-parameter-default/m-p/76135#M351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;I'm using Runtime's &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/net/desktop/api-reference//html/T_Esri_ArcGISRuntime_Tasks_Query_FindTask.htm" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;Find Task&lt;/A&gt;&lt;/STRONG&gt; in order to find all features in a map service layer containing a specified string.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;According to &lt;A class="jive-link-external-small" href="https://developers.arcgis.com/net/desktop/api-reference//html/P_Esri_ArcGISRuntime_Tasks_Query_FindParameters_Contains.htm" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;documentation&lt;/A&gt; the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; parameter is true (i.e. search is performed for a &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;partial&lt;/STRONG&gt; and &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;not&lt;/STRONG&gt; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;exact&lt;/STRONG&gt; match).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;In practice, however, the search is always performed for an &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;exact&lt;/STRONG&gt; match - whether&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; is set to either &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;true&lt;/STRONG&gt; or &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;false&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;After "sniffing" the actual REST URL generated by the task, I think I found the problem.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;When &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;FindParameters.Contains&lt;/STRONG&gt; is set to true - the generated REST URL doesn't have the "contains" URL parameter at all, because it assumes the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;true&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Unfortunately, REST API (at least in ArcGIS Server version &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;10.2.2&lt;/STRONG&gt; that I'm currently using) for Map Service's &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Find&lt;/STRONG&gt; method falsely assumes the default value of &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;false&lt;/STRONG&gt;, contrary to its own &lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/rest/apiref/find.html" rel="nofollow" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #287433;" target="_blank"&gt;documentation&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Is this a bug in 10.2.2?&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Is there any workaround for this issue, except generating my own REST "find" request and parsing the results (from JSON)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Alexander.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Mar 2015 14:01:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-task-quot-contains-quot-parameter-default/m-p/76135#M351</guid>
      <dc:creator>AlexanderGleyzer</dc:creator>
      <dc:date>2015-03-22T14:01:42Z</dc:date>
    </item>
  </channel>
</rss>

