<?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 Search count(*) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-count/m-p/142530#M99804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently working with the Alfresco Webservices and I'd found an (really) annoying thing… I can't found via Lucene syntax a way to know how much results are returned by the query [like in the SQL query count (*) from TABLE].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My query always returns 1000 results (in the repository.properties I had the line system.acl.maxPermissionChecks=1000) but I have to know how much nodes fulfill my query (even thousands of them).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 14:15:26 GMT</pubDate>
    <dc:creator>okto</dc:creator>
    <dc:date>2007-10-22T14:15:26Z</dc:date>
    <item>
      <title>Search count(*)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-count/m-p/142530#M99804</link>
      <description>hi!!!I'm currently working with the Alfresco Webservices and I'd found an (really) annoying thing… I can't found via Lucene syntax a way to know how much results are returned by the query [like in the SQL query count (*) from TABLE].My query always returns 1000 results (in the repository.properties</description>
      <pubDate>Mon, 22 Oct 2007 14:15:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-count/m-p/142530#M99804</guid>
      <dc:creator>okto</dc:creator>
      <dc:date>2007-10-22T14:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Search count(*)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-count/m-p/142531#M99805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to override any property using custom-repository.properties.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Repository_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Repository_Configuration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when you query using webservices you should be able to get the count from the resultset. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryResult result=repoService.query(STORE,new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/*\""),true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ResultSet rs=result.getResultSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;long count=rs.getTotalRowCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query doesn't return the actual contents from the repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To read the content you need to use the contentService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagul Khaja&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Oct 2007 12:48:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-count/m-p/142531#M99805</guid>
      <dc:creator>rivetlogic</dc:creator>
      <dc:date>2007-10-26T12:48:04Z</dc:date>
    </item>
  </channel>
</rss>

