Office365-REST-Python-Client
Office365-REST-Python-Client copied to clipboard
size limit for searches
Hi,
Using client.search.query_messages(query).execute_query() I'm searching for certain e-mails. By default the number of returned hits is around 20. How can I set that to the maximum allowed by office365? And is there a way of continuing the search of that maximum is reached?
I tried adding it myself (see https://github.com/folkertvanheusden/Office365-REST-Python-Client/tree/907 ) but it does not seem to work, altough the parameters end up in the query:
{'requests': [{'query': {'queryString': 'a'}, 'entityTypes': ['message'], 'sharePointOneDriveOptions': {}, 'rowLimit': 30, 'startRow': 50}]}
(see startRow and rowLimit)