<?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 &amp; Authentication in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121372#M85511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just use the "SearchService" rather than the "searchService". The "SearchService" is the one you'd get from the service registry, without the need for the service registry…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if this holds true for all services? I.E., if there is a NodeService with ACL checking and a nodeService without it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 08:19:47 GMT</pubDate>
    <dc:creator>rogier_oudshoor</dc:creator>
    <dc:date>2009-02-16T08:19:47Z</dc:date>
    <item>
      <title>Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121363#M85502</link>
      <description>I am developing a community site based on alfresco webscripts. We have an issue with using search.From what i've seen, when i use the search API from javascript, the search will return all items that the logged in user has access to.However, when i use Java-based search (which i have to, because i w</description>
      <pubDate>Fri, 14 Dec 2007 10:33:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121363#M85502</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2007-12-14T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121364#M85503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;(which i have to, because i want to order the results)&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What problems are you having sorting the results in Javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 10:44:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121364#M85503</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2007-12-14T10:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121365#M85504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, when i look at the documentation (at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Search_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Search_API&lt;/A&gt;&lt;SPAN&gt; ), there is no way to sort the results except programmatically. Typically, a search may return hundreds of results … of which i'd only like to process the first 50 or so. Ordering by code would mean a huge overhead, which i'd like to avoid by having Lucene order the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i can order &amp;amp; limit the results via JavaScript, i'd be quite happy&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 10:48:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121365#M85504</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2007-12-14T10:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121366#M85505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After a long search, i found what was causing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was using spring beans to set the searchService to my own search implementation. The given searchService has admin access.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco's search implementation retrieves the searchService at runtime via the serviceRegistry. This searchService has the access of the current user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This method appears to apply to all of Alfresco's services. Basically, if you want to do something that requires admin access, you can get the services directly from Spring. If you want to be restricted by the users' capabilities, you need to retrieve the services dynamically via the serviceRegistry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally, i feel this is poor design - i'd be much happier if you could tell the service what kind of access you'd like to use. Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:00:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121366#M85505</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2007-12-19T11:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121367#M85506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rogier,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did u find a way to sort and even restrict the number of results returned by Alfresco's Javascript API for search ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 16:41:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121367#M85506</guid>
      <dc:creator>rraulji</dc:creator>
      <dc:date>2008-08-20T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121368#M85507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi rraulji,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way to sort (as far as i know) is using the Java API. That means that, if you want to use call from Javascript, that you will have to code your own BaseScopableProcessorExtension to implement it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rogier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 06:20:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121368#M85507</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2008-08-21T06:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121369#M85508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From v2.9 the JavaScript search API supports sorting (added in SVN r1214 30-Oct-2007)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;search.luceneSearch(query, sortColumn, sortAscending);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;e.g. search.luceneSearch(query, "@cm:created", true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 07:44:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121369#M85508</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2008-08-21T07:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121370#M85509</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;SPAN&gt; How can i incorporate detailed search in web-services API . I would like to incorporate &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Sorting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Pagination like get search results from 1 -&amp;gt; 100 etc.. or give me only first 100 results etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I am using something like this &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, searchQuery);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;QueryResult queryResult = WebServiceFactory.getRepositoryService().query(storeRef, query, false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can i add "addSort" flag.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that SearchParameters enables this. but webserice Repository service does not support this (only foundation repository service)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also , while constructing the PATH query, how can i specify list of values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For Ex: PATH:"/app:company_home/cm&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;BM//*" AND&amp;nbsp; TEXT:"document" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so Instead of passing 1 value (document) for TEXT filed, how i can i pass array to values (instead of converting to OR and ANDs) for a specific meta-data field (which is multi-value attribute).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 01:16:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121370#M85509</guid>
      <dc:creator>satishvarmadand</dc:creator>
      <dc:date>2008-12-16T01:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121371#M85510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;After a long search, i found what was causing this.&lt;BR /&gt;&lt;BR /&gt;I was using spring beans to set the searchService to my own search implementation. The given searchService has admin access.&lt;BR /&gt;&lt;BR /&gt;Alfresco's search implementation retrieves the searchService at runtime via the serviceRegistry. This searchService has the access of the current user.&lt;BR /&gt;&lt;BR /&gt;This method appears to apply to all of Alfresco's services. Basically, if you want to do something that requires admin access, you can get the services directly from Spring. If you want to be restricted by the users' capabilities, you need to retrieve the services dynamically via the serviceRegistry.&lt;BR /&gt;&lt;BR /&gt;Personally, i feel this is poor design - i'd be much happier if you could tell the service what kind of access you'd like to use. Any thoughts?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Just use the "SearchService" rather than the "searchService". The "SearchService" is the one you'd get from the service registry, without the need for the service registry…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2008 11:12:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121371#M85510</guid>
      <dc:creator>t_broyer</dc:creator>
      <dc:date>2008-12-17T11:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121372#M85511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just use the "SearchService" rather than the "searchService". The "SearchService" is the one you'd get from the service registry, without the need for the service registry…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know if this holds true for all services? I.E., if there is a NodeService with ACL checking and a nodeService without it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 08:19:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121372#M85511</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-02-16T08:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Search &amp; Authentication</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121373#M85512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Almost, yes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a look at the public-*-context.xml files in WEB-INF/classes/alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 08:43:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-authentication/m-p/121373#M85512</guid>
      <dc:creator>t_broyer</dc:creator>
      <dc:date>2009-02-16T08:43:24Z</dc:date>
    </item>
  </channel>
</rss>

