<?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 without acl in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129980#M91342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ACLs are applied in an aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally search are performed by getting a search service from the serviceRegistry. It you search using this, then ACLs are applied. Internally this search service delegates to the bean "indexerAndSearcherFactory". If you get a searcher from that then the ACLs will not be applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SearchService searcher = indexerAndSearcherFactory.getSearcher(storeRef, !params.excludeDataInTheCurrentTransaction());&lt;BR /&gt;results = searcher.query(params);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;We saw a reduction in times from 2-3 seconds to 10-20ms for the searches we were performing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 07:52:37 GMT</pubDate>
    <dc:creator>mark_smithson</dc:creator>
    <dc:date>2007-10-30T07:52:37Z</dc:date>
    <item>
      <title>search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129979#M91341</link>
      <description>i need to develop a kind of fast search service. the ideal situation is:a group Xa space Y group X can see all documents in space Y so i don't want to&amp;nbsp; care about ACL when searching - the main goal is: "it has to be super fast".i tried creating a bean that link "fileFolderService" becouse i saw that</description>
      <pubDate>Mon, 29 Oct 2007 18:03:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129979#M91341</guid>
      <dc:creator>ale</dc:creator>
      <dc:date>2007-10-29T18:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129980#M91342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The ACLs are applied in an aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Normally search are performed by getting a search service from the serviceRegistry. It you search using this, then ACLs are applied. Internally this search service delegates to the bean "indexerAndSearcherFactory". If you get a searcher from that then the ACLs will not be applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SearchService searcher = indexerAndSearcherFactory.getSearcher(storeRef, !params.excludeDataInTheCurrentTransaction());&lt;BR /&gt;results = searcher.query(params);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;We saw a reduction in times from 2-3 seconds to 10-20ms for the searches we were performing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 07:52:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129980#M91342</guid>
      <dc:creator>mark_smithson</dc:creator>
      <dc:date>2007-10-30T07:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129981#M91343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you very much! from 2-3 secs to 20-30 millis is a great improvement!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i hoped in a higher level service but i'll work on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you again for "it's in an aspect" suggestion - if you have more informations about it they are welcome!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 09:07:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129981#M91343</guid>
      <dc:creator>ale</dc:creator>
      <dc:date>2007-10-30T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129982#M91344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in the end i made a very simple test. i created a space with 500 docs and perform a simple search like "give me all first level children" using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fileFolderService.listFiles and then calling getName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searchService.selectNodes and then calling nodeService.getProperty for name (searchService=indexerAndSearcherFactory.getSearcher)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searchService.query (filtering on type and primary parent) and then calling nodeService.getProperty for name (searchService=indexerAndSearcherFactory.getSearcher)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the components i linked to my bean are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"fileFolderService"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"indexerAndSearcherFactory"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then i create two users: "test" that can see all documents in the space and "guesttest" that can see ONLY one document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using "guesttest" (first call, to be sure the cache is empty)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;fileFolderService.listFiles i get 501 results in about 4 secs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searchService.selectNodes i get 501 results in about 3,5 secs (50 millis without nodeService.getProperty &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searchService.query i get 501 results in about 4 secs (75 millis without nodeService.getProperty &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so i suppose no ACLs are applied using these services.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;just to test, if i link "FileFolderService" (the public one) as fileFolderService i get 1 result in 13 secs the first call! &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hope this helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ciao,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 11:51:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129982#M91344</guid>
      <dc:creator>ale</dc:creator>
      <dc:date>2007-10-30T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129983#M91345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;75 millis without nodeService.getProperty Smile&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes - there is a difference between getting a property value from the node service, this accesses the DB and may apply ACLs again to just getting an indexed property value from the search results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 13:43:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129983#M91345</guid>
      <dc:creator>mark_smithson</dc:creator>
      <dc:date>2007-10-30T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129984#M91346</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;Bean names starting with an upper case include transaction and security interceptors, others do not. So ….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SearchService - applies acls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;searchService - does not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NodeService - applies acls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nodeService - does not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember to wrap calls in User transactions to beans that do not have a TX wrapper.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 09:58:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129984#M91346</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-11-08T09:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: search without acl</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129985#M91347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't understand why unsing faces beans ACL are applied even if they link nodeService instead of NodeService (if i'm not wrong).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;caio,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2007 10:45:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-without-acl/m-p/129985#M91347</guid>
      <dc:creator>ale</dc:creator>
      <dc:date>2007-11-08T10:45:29Z</dc:date>
    </item>
  </channel>
</rss>

