AnsweredAssumed Answered

Limit query lucene

Question asked by harvey on May 14, 2013
Hi all :)

i installed -> <a href="http://code.google.com/p/alfresco-php-sdk/"> http://code.google.com/p/alfresco-php-sdk/ </a>

and i've modified the file queryExecuter.php in folder Examples/QueryExecuter

changing the line:
<blockquote>
  

        $nodes = $session->query($currentStore, $statement);
  

</blockquote>
to

<blockquote>
  

        $nodes = $session->query($currentStore, '(PARENT:"workspace://SpacesStore/eb710935-3b0c-48c8-87a7-016ec767b02c") -ISCONTAINER:T');
  

</blockquote>

This will list the 'sites' in alfresco, the code is working, but i need give a 'limit' to query 'cause the number of files in each site|directory is long

i think the instruction to limit the query is '[n TO m]' but doesn't work, there's anyway to limit the query?

Outcomes