Listing Content

381
1
07-24-2017 01:39 PM
DavidColey
Frequent Contributor

Hi -

So when I'm listing my content in my notebook through the contentManager, how or where can I change or set the number of items that are returned:

search_result = gis.content.search(query="owner:xxxxx_xxxx", item_type="Feature Layer")
search_result

Only returns 10 items in my output.  I don't see where I can set that in the api

Thanks,

David

0 Kudos
1 Reply
DavidColey
Frequent Contributor

Ah just found it:

search(queryitem_type=Nonesort_field=’avgRatingsort_order=’desc, max_items=10, outside_org=False)

Thanks