<?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: gis.content.search returns null in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074162#M42739</link>
    <description>&lt;P&gt;Yes, that's exactly what i was asking for, thanks a lot for your help and effort.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jun 2021 14:10:19 GMT</pubDate>
    <dc:creator>HamzaM</dc:creator>
    <dc:date>2021-06-30T14:10:19Z</dc:date>
    <item>
      <title>gis.content.search returns null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074097#M42733</link>
      <description>&lt;P&gt;I am trying to search for a certain layer but it returns null this is the code i am using, i even tried outside_org= True but it still didn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="content.search.PNG" style="width: 985px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17351iB6C28515291E9F57/image-size/large?v=v2&amp;amp;px=999" role="button" title="content.search.PNG" alt="content.search.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/95280" target="_blank"&gt;@JayantaPoddar&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600" target="_blank"&gt;@DanPatterson&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692" target="_blank"&gt;@DavidPike&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906" target="_blank"&gt;@jcarlson&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/1127" target="_blank"&gt;@DanLee&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371" target="_blank"&gt;@JoshuaBixby&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/147857" target="_blank"&gt;@Scott_Harris&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/189272" target="_blank"&gt;@TomBole&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 12:22:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074097#M42733</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-30T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: gis.content.search returns null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074122#M42735</link>
      <description>&lt;P&gt;Can you try searching without specifying item_type? Also, does searching for other items return anything? Or a search for an empty string?&lt;/P&gt;&lt;P&gt;You've posted in the ArcGIS Pro Community; are you doing this in a Notebook in Pro?&lt;/P&gt;&lt;P&gt;It's hard to know if it's simply that your search is too specific, or if something else is going on.&lt;/P&gt;&lt;P&gt;PS - Don't forget about the "code sample" button on here! Helps make code-based questions more readable.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1625057595306.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17354i7385E935C3CFB2CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1625057595306.png" alt="jcarlson_0-1625057595306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 12:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074122#M42735</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-30T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: gis.content.search returns null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074144#M42737</link>
      <description>&lt;P&gt;My search was too specific when i removed the item type it gave me results but not exactly what i am looking for, is there is a way to know more about all available content.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 13:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074144#M42737</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-30T13:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: gis.content.search returns null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074160#M42738</link>
      <description>&lt;P&gt;The REST documentation is a good place to look. Here's the page for &lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/items-and-item-types.htm" target="_self"&gt;items and item types&lt;/A&gt; for reference. Is that what you're asking?&lt;/P&gt;&lt;P&gt;If you want to get more information about the content in your portal, you can try something like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;[f'{i.id}  |  {i.title[:32]:32}  |  {i.type}' for i in gis.content.search('', max_items=-1)]&lt;/LI-CODE&gt;&lt;P&gt;This will return a "table" of items as text. If you identify the desired item in the list, you can then use&lt;/P&gt;&lt;PRE&gt;gis.content.get('some-itemID')&lt;/PRE&gt;&lt;P&gt;to get that item specifically.&lt;/P&gt;&lt;P&gt;To get a true table, you can also use the &lt;STRONG&gt;advanced_search&lt;/STRONG&gt; function combined with the &lt;STRONG&gt;pandas&lt;/STRONG&gt; module.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pandas as pd

pd.DataFrame(gis.content.advanced_search('omaha', max_items=-1, as_dict=True)['results'])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This returns a DataFrame of the items and all of their details. The DataFrame itself can interacted with further to filter, sort, etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1625061965470.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/17372i144E0CB2AC3D20FC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1625061965470.png" alt="jcarlson_0-1625061965470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:06:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074160#M42738</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-06-30T14:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: gis.content.search returns null</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074162#M42739</link>
      <description>&lt;P&gt;Yes, that's exactly what i was asking for, thanks a lot for your help and effort.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 14:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/gis-content-search-returns-null/m-p/1074162#M42739</guid>
      <dc:creator>HamzaM</dc:creator>
      <dc:date>2021-06-30T14:10:19Z</dc:date>
    </item>
  </channel>
</rss>

