<?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: Search and Paging in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117423#M82922</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way Lucene performs its "scoring" means that it needs the full resultset to be able to judge the score of documents. OpenSearch is simply paging through the query results each time - it's not great but it works. As far as performance is concerned, 4/5 of the CPU time will be taken up by permissions evaluations in the repository - not Lucene itself. You can configure Alfresco to stop processing permissions after a certain number or time taken and ignore the rest - as the results will be returned in score order anyway - and let's be honest, most users don't want to see more than a few pages of results in any UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 14:42:12 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-08-16T14:42:12Z</dc:date>
    <item>
      <title>Search and Paging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117419#M82918</link>
      <description>I am having a bit of a problem with lucene and paging.I need to be able to specify that I only want the resultset for example page 5 and that there is like 10 items on each page.I have seen that you can do it with opensearch but how do you do it with lucene?</description>
      <pubDate>Fri, 10 Aug 2007 06:30:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117419#M82918</guid>
      <dc:creator>kasperba</dc:creator>
      <dc:date>2007-08-10T06:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Search and Paging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117420#M82919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lucene does not support paging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can do though, is run the search then skip results until you get to the page you are interested in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 07:54:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117420#M82919</guid>
      <dc:creator>mark_smithson</dc:creator>
      <dc:date>2007-08-10T07:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search and Paging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117421#M82920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for you answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Skipping rows is an awful solution, but if there is no other then that will have to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But to me it looks like a limitation in Alfresco since I can find examples of how to do paging with Lucene.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 08:11:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117421#M82920</guid>
      <dc:creator>kasperba</dc:creator>
      <dc:date>2007-08-10T08:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search and Paging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117422#M82921</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;As far as I am aware paging in lucene would involve just displaying the relevant results for the current page (effectively skipping rows), or have you found an example which does something different?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucene is quick, we can page results with thousands of result with very little impact on performance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use the examples you have found about paging in lucene. Alfresco makes it possible for you to get to the hits and documents in the lucene results for a search.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 19:06:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117422#M82921</guid>
      <dc:creator>mark_smithson</dc:creator>
      <dc:date>2007-08-10T19:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Search and Paging</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117423#M82922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The way Lucene performs its "scoring" means that it needs the full resultset to be able to judge the score of documents. OpenSearch is simply paging through the query results each time - it's not great but it works. As far as performance is concerned, 4/5 of the CPU time will be taken up by permissions evaluations in the repository - not Lucene itself. You can configure Alfresco to stop processing permissions after a certain number or time taken and ignore the rest - as the results will be returned in score order anyway - and let's be honest, most users don't want to see more than a few pages of results in any UI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 14:42:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-and-paging/m-p/117423#M82922</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-08-16T14:42:12Z</dc:date>
    </item>
  </channel>
</rss>

