<?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: Lucene Search - all cm:folders under a certain node in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282383#M235513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use java public service api ,you can use CategoryService 's getChildren method ,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;categoryService.getChildren(getNodeRef(), CategoryService.Mode.MEMBERS, CategoryService.Depth.ANY)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;If you want to use javascript api ,you can use classification object's categoryMembers array,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;classification.categoryMembers&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2014 14:50:01 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-07-28T14:50:01Z</dc:date>
    <item>
      <title>Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282375#M235505</link>
      <description>I am confused as to the best way to do this kind of search, when starting from a given node.I have a rather deep folder structure for my user folders. This is due to the way we manage accounts. I have a valid Lucene query that returns to me the user's home folder and its node id:+PATH:"/app:company_</description>
      <pubDate>Sun, 24 Feb 2013 20:05:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282375#M235505</guid>
      <dc:creator>arnieaustin2</dc:creator>
      <dc:date>2013-02-24T20:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282376#M235506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I understand is that you wanted to fetch all the folders with the name as "XYZ" lying under the space "XYZ"(Your user home space).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case the query you are using should work just you can add one more filter of type query like follow&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;+PATH:"/app:company_home/app:user_homes//* " AND +@cm\:name:"XYZ" AND TYPE:"cm:folder"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 06:27:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282376#M235506</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-25T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282377#M235507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not quite. What I am trying to do, is determine if a folder by the name of "Agency Reports" exists under a given user's Home Folder:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;./user_homes/TAGAL/ITS/ACM3/Agency Reports&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So my search would need to start with the Node Id of the user's home folder and look for all cm:folder + @cm:name = 'Agency Reports'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is the starting at node ID XXXXX and below that has me confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 16:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282377#M235507</guid>
      <dc:creator>arnieaustin2</dc:creator>
      <dc:date>2013-02-25T16:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282378#M235508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okey I think I got your problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So first you need to find the current logged in user's userid.(Authentication service or authorization service's API varied from version to version)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can get the User Object associated with that userid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on that object you can get his home space noderef. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then you can search with the help of search service to search under that particular noderef for any children with given name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:59:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282378#M235508</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-26T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282379#M235509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right… Now for the question at hand… How does one tell Lucene to start a search at a node, then look for cm:folder and @cm:name&amp;nbsp; =xyz?..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 04:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282379#M235509</guid>
      <dc:creator>arnieaustin2</dc:creator>
      <dc:date>2013-02-28T04:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282380#M235510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No one?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 18:45:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282380#M235510</guid>
      <dc:creator>arnieaustin2</dc:creator>
      <dc:date>2013-03-07T18:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282381#M235511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just add the user home to the path&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+PATH:"/app:company_home/app:user_homes/&amp;lt;userHomeElement//*"&amp;nbsp; AND +@cm\:name:"XYZ" AND TYPE:"cm:folder"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could use one PATH&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+PATH:"/app:company_home/app:user_homes/&amp;lt;userHomeElement//&amp;lt;folderElement&amp;gt;"&amp;nbsp; AND AND TYPE:"cm:folder"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to know the names space prefix and ISO9075 encode the localname.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also use ANCESTOR:"HomeFolderNodeRef"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Mar 2013 19:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282381#M235511</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2013-03-13T19:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282382#M235512</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 am developing advance search dashlet. i need to fetch all document which are related to particular category. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pls help me to do it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;janaka&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:05:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282382#M235512</guid>
      <dc:creator>janaka1984</dc:creator>
      <dc:date>2014-07-24T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Search - all cm:folders under a certain node</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282383#M235513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use java public service api ,you can use CategoryService 's getChildren method ,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;categoryService.getChildren(getNodeRef(), CategoryService.Mode.MEMBERS, CategoryService.Depth.ANY)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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;If you want to use javascript api ,you can use classification object's categoryMembers array,like following&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;classification.categoryMembers&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2014 14:50:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-search-all-cm-folders-under-a-certain-node/m-p/282383#M235513</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-07-28T14:50:01Z</dc:date>
    </item>
  </channel>
</rss>

