<?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:  ArcGIS Portal content search with created date ranges not returning items in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786503#M1378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"created: [1587285213000 TO 1587985213000]"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Apr 2020 14:27:28 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-04-27T14:27:28Z</dc:date>
    <item>
      <title>ArcGIS Portal content search with created date ranges not returning items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786502#M1377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to search for content in ArcGIS Portal created within a specified date range.&lt;/P&gt;&lt;P&gt;On searching for a recent item, I can see that the field is formatted as a UNIX timestamp in milliseconds, so have just included a basic content search but it isn't working; the below code is what I am using after connecting already to Portal...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;items =&amp;nbsp;gis.content.search(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"created:&amp;nbsp;'[1587285213000&amp;nbsp;TO&amp;nbsp;1587985213000]'"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #c586c0;"&gt;for&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;item&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;items:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;print&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;f&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"Title:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;item.title&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;,&amp;nbsp;Created:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;item.created&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running the script, I do not receive any error messages, but I also do not receive any items - the time frame is between now and&amp;nbsp;all of last week; content has been created in our portal last week so I am trying to work out what the issue might be?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 11:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786502#M1377</guid>
      <dc:creator>ChrisBuckmaster2</dc:creator>
      <dc:date>2020-04-27T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re:  ArcGIS Portal content search with created date ranges not returning items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786503#M1378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"created: [1587285213000 TO 1587985213000]"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 14:27:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786503#M1378</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-27T14:27:28Z</dc:date>
    </item>
    <item>
      <title>Re:  ArcGIS Portal content search with created date ranges not returning items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786504#M1379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Joshua&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the single quotes but that didn't change the outcome unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 14:39:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786504#M1379</guid>
      <dc:creator>ChrisBuckmaster2</dc:creator>
      <dc:date>2020-04-27T14:39:38Z</dc:date>
    </item>
    <item>
      <title>Re:  ArcGIS Portal content search with created date ranges not returning items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786505#M1380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what is going on then.&amp;nbsp; I just tried it locally including and dropping the single quotes, and both gave me the same results, which were not empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What version of ArcGIS API for Python are you using and what version of ArcGIS Portal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 15:26:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786505#M1380</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-27T15:26:22Z</dc:date>
    </item>
    <item>
      <title>Re:  ArcGIS Portal content search with created date ranges not returning items</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786506#M1381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Portal version 10.6 and ArcGIS 1.6.0 in my production environment (I did also try it with ArcGIS 1.7.0 and 1.8.0 but again that didn't work either).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upgrading Portal currently is not an option; I would have thought this date range search option would have existed in previous versions to so have my doubts that it would be the version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2020 08:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-portal-content-search-with-created-date/m-p/786506#M1381</guid>
      <dc:creator>ChrisBuckmaster2</dc:creator>
      <dc:date>2020-04-28T08:30:03Z</dc:date>
    </item>
  </channel>
</rss>

