<?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: Find Operation Multiple Search Text Values in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-operation-multiple-search-text-values/m-p/649714#M3152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have solved this by applying a layer definition to the find operation that uses the SQL expression I need to find any matching values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I split the string entry at each space, and make the search text the first element in the array (arr[0]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I make the layer definition the SQL expression to find matches with the AND operator (field1||field2||field3 LIKE '%arr[0]%' AND field1||field2||field3 LIKE '%arr[1]%' ... AND field1||field2||field3 LIKE '%arr&lt;N&gt;%')&lt;/N&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may not be the cleanest route, but it works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps anyone else out there looking to do something similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jul 2013 17:05:37 GMT</pubDate>
    <dc:creator>ChristopherBlinn1</dc:creator>
    <dc:date>2013-07-09T17:05:37Z</dc:date>
    <item>
      <title>Find Operation Multiple Search Text Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-operation-multiple-search-text-values/m-p/649713#M3151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have multiple searchText values in a Find operation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to search for the occurrence of string1 AND string2 AND ... stringN in a series of fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A user wants to search the value "John Smith".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The layer field has the name stored as "Smith, John".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like searchText=John&amp;amp;&amp;amp;Smith (or whatever supported operator exists to specify AND).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't seem to find any documentation or examples of anyone doing this so I am lead to presume it is not possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I need to use the Find operator, and not a Query(where) so concat (||) fields and building a where statement is not an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 13:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-operation-multiple-search-text-values/m-p/649713#M3151</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-07-09T13:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Find Operation Multiple Search Text Values</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-operation-multiple-search-text-values/m-p/649714#M3152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have solved this by applying a layer definition to the find operation that uses the SQL expression I need to find any matching values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I split the string entry at each space, and make the search text the first element in the array (arr[0]).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I make the layer definition the SQL expression to find matches with the AND operator (field1||field2||field3 LIKE '%arr[0]%' AND field1||field2||field3 LIKE '%arr[1]%' ... AND field1||field2||field3 LIKE '%arr&lt;N&gt;%')&lt;/N&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may not be the cleanest route, but it works like a charm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps anyone else out there looking to do something similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 17:05:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/find-operation-multiple-search-text-values/m-p/649714#M3152</guid>
      <dc:creator>ChristopherBlinn1</dc:creator>
      <dc:date>2013-07-09T17:05:37Z</dc:date>
    </item>
  </channel>
</rss>

