<?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: How to limit results from NXQL Query API REST in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315663#M2664</link>
    <description>&lt;P&gt;I have been looking at "Api Playground" and I can not find the way to limit the results, now I try to do it but there is no file in the repository and I do not know how to upload it.
In the automation of php I introduce the parameters that should make the effect that I want in the query and it does not produce an error but it does not limit the results either&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 09:28:24 GMT</pubDate>
    <dc:creator>Domingo_Gonzále</dc:creator>
    <dc:date>2017-01-05T09:28:24Z</dc:date>
    <item>
      <title>How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315659#M2660</link>
      <description>&lt;P&gt;Hi, I don't know how I can LIMIT the number of results from a NXQL query.
Any Idea?
If the query returns me 200 results I want only 20 ,for example.
Mi Nuxeo's version is 5.8
Can I do this?
Thanks
Regards&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315659#M2660</guid>
      <dc:creator>Domingo_Gonzále</dc:creator>
      <dc:date>2017-01-04T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315660#M2661</link>
      <description>&lt;P&gt;Whether you use the REST API endpoint (/query/) or the automation operation (Repository.Query), you have a pageSize parameter (and currentPageIndex)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 12:29:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315660#M2661</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-01-04T12:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315661#M2662</link>
      <description>&lt;P&gt;$lo_answer = $lo_session-&amp;gt;newRequest("Document.Query")
-&amp;gt;set('params', 'query', $nxqlQuery)
-&amp;gt;set('pageSize', 1)
-&amp;gt;setSchema('*')
-&amp;gt;sendRequest();&lt;/P&gt;
&lt;P&gt;like that? not working ...&lt;/P&gt;
&lt;P&gt;I also tried to do:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;$lo_answer = $lo_session-&amp;gt;newRequest("Document.Query")
-&amp;gt;set('params', 'query', $nxqlQuery)
-&amp;gt;set('params','pageSize', 1)
-&amp;gt;setSchema('*')
-&amp;gt;sendRequest();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and does not...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 14:54:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315661#M2662</guid>
      <dc:creator>Domingo_Gonzále</dc:creator>
      <dc:date>2017-01-04T14:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315662#M2663</link>
      <description>&lt;P&gt;Example CURL request&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:00:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315662#M2663</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2017-01-04T16:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315663#M2664</link>
      <description>&lt;P&gt;I have been looking at "Api Playground" and I can not find the way to limit the results, now I try to do it but there is no file in the repository and I do not know how to upload it.
In the automation of php I introduce the parameters that should make the effect that I want in the query and it does not produce an error but it does not limit the results either&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 09:28:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315663#M2664</guid>
      <dc:creator>Domingo_Gonzále</dc:creator>
      <dc:date>2017-01-05T09:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to limit results from NXQL Query API REST</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315664#M2665</link>
      <description>&lt;P&gt;Hi,
the following code works fine for me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-php"&gt;$client = new \Nuxeo\Automation\Client\NuxeoPhpAutomationClient('http://nuxeo:8080/nuxeo/site/automation');
$session = $client-&amp;gt;getSession('Administrator', 'Administrator');
$docs = $session-&amp;gt;newRequest('Document.Query')
  -&amp;gt;set('params', 'query', 'SELECT * FROM Document WHERE ecm:path STARTSWITH "/default-domain/workspaces/Default Workspace"')
  -&amp;gt;set('params', 'pageSize', 1)
  -&amp;gt;setSchema('*')
  -&amp;gt;sendRequest();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you share the NXQL query you use ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2017 15:24:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-limit-results-from-nxql-query-api-rest/m-p/315664#M2665</guid>
      <dc:creator>Pierre-Gildas_M</dc:creator>
      <dc:date>2017-01-10T15:24:09Z</dc:date>
    </item>
  </channel>
</rss>

