<?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 Setting very specific exclusion in Query widget in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103876#M42396</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a very specific request that I'm struggling with. Within my map, I have a layer which contains a PERIOD field, which for complex reasons contains multiple values e.g. 'ROMAN\EARLY MEDIEVAL\LATE MEDIEVAL\MEDIEVAL\POST MEDIEVAL'. Because this is a multiple entry, the only way to search is by using 'CONTAINS'. Unfortunately, whilst someone looking for features of a 'BRONZE AGE' date, who enters 'BRONZE AGE' as their criteria, will be happy to find 'EARLY BRONZE AGE', 'LATE BRONZE AGE' as well as just 'BRONZE AGE', POST MEDIEVAL&amp;nbsp; is a different time period. Therefore, someone looking for 'MEDIEVAL', although happy to find 'LATE MEDIEVAL' as well as just 'MEDIEVAL' will not want 'POST MEDIEVAL'. I've been trying to find a way to exclude 'POST MEDIEVAL', but everything I've tried also excludes 'MEDIEVAL'. I guess what I need is the query 'CONTAINS 'POST MEDIEVAL' AND DOES NOT CONTAIN 'MEDIEVAL\POST MEDIEVAL', but used as an excluder. BTW I know that because of the structure, if both 'MEDIEVAL' and 'POST MEDIEVAL' occur they will always occur as 'MEDIEVAL\POST MEDIEVAL'&amp;nbsp; so that string is searchable.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 01 Oct 2021 08:44:22 GMT</pubDate>
    <dc:creator>SimonCrutchley</dc:creator>
    <dc:date>2021-10-01T08:44:22Z</dc:date>
    <item>
      <title>Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103876#M42396</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I have a very specific request that I'm struggling with. Within my map, I have a layer which contains a PERIOD field, which for complex reasons contains multiple values e.g. 'ROMAN\EARLY MEDIEVAL\LATE MEDIEVAL\MEDIEVAL\POST MEDIEVAL'. Because this is a multiple entry, the only way to search is by using 'CONTAINS'. Unfortunately, whilst someone looking for features of a 'BRONZE AGE' date, who enters 'BRONZE AGE' as their criteria, will be happy to find 'EARLY BRONZE AGE', 'LATE BRONZE AGE' as well as just 'BRONZE AGE', POST MEDIEVAL&amp;nbsp; is a different time period. Therefore, someone looking for 'MEDIEVAL', although happy to find 'LATE MEDIEVAL' as well as just 'MEDIEVAL' will not want 'POST MEDIEVAL'. I've been trying to find a way to exclude 'POST MEDIEVAL', but everything I've tried also excludes 'MEDIEVAL'. I guess what I need is the query 'CONTAINS 'POST MEDIEVAL' AND DOES NOT CONTAIN 'MEDIEVAL\POST MEDIEVAL', but used as an excluder. BTW I know that because of the structure, if both 'MEDIEVAL' and 'POST MEDIEVAL' occur they will always occur as 'MEDIEVAL\POST MEDIEVAL'&amp;nbsp; so that string is searchable.&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 08:44:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103876#M42396</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2021-10-01T08:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103901#M42400</link>
      <description>&lt;P&gt;CONTAINS 'MEDIEVAL' AND DOES NOT CONTAIN 'POST MEDIEVAL'&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 11:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103901#M42400</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-01T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103913#M42401</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Thanks for that, but how do you actually get this into the query? It only has specific options and I can't see how to put such a combined query into it.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103913#M42401</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2021-10-01T12:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103915#M42402</link>
      <description>&lt;P&gt;Assuming the input mask looks the same in AGOL as it does in Portal (bad Paint edit because my Portal is in German):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohannesLindner_0-1633091717331.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24357i60FACD484C71A8E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohannesLindner_0-1633091717331.png" alt="JohannesLindner_0-1633091717331.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 12:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103915#M42402</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-01T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103921#M42403</link>
      <description>&lt;P&gt;Hi Johannes,&lt;/P&gt;&lt;P&gt;Sorry, I haven't explained clearly enough. This will exclude those examples which are both MEDIEVAL and POST MEDIEVAL, which is not what I need. Unfortunately, I need to have those examples where it is both, but not just POST MEDIEVAL.&lt;/P&gt;&lt;P&gt;Sorry&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 13:12:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103921#M42403</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2021-10-01T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103931#M42405</link>
      <description>&lt;P&gt;Aaah, now I get the problem...&lt;/P&gt;&lt;P&gt;Yeah, this is going to be tricky. I tried a few things and couldn't find a good solution, but maybe someone more versed in SQL than me can.&lt;/P&gt;&lt;P&gt;If you're willing/able to edit your field, there would be a simple solution:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Make sure that "MEDIEVAL" always has the slashes at the start and end&lt;UL&gt;&lt;LI&gt;e.g. have the logic that is filling that field insert the slashes at the start and end of the string, too&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;search for CONTAINS '/MEDIEVAL/'&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 01 Oct 2021 13:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103931#M42405</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2021-10-01T13:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting very specific exclusion in Query widget</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103950#M42408</link>
      <description>&lt;P&gt;Unfortunately I have c200,000 entries, some of which include MEDIEVAL, some POST MEDIEVAL, some both, and some none, so going back to edit the data isn't really an option :(. I'd also need to ask users to search using /MEDIEVAL/ instead of just entering the period, which is tricky.&lt;/P&gt;&lt;P&gt;Thanks for your help in trying.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Oct 2021 14:29:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/setting-very-specific-exclusion-in-query-widget/m-p/1103950#M42408</guid>
      <dc:creator>SimonCrutchley</dc:creator>
      <dc:date>2021-10-01T14:29:17Z</dc:date>
    </item>
  </channel>
</rss>

