<?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 through subspaces within a space... in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208228#M161358</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 absolutely new to Alfresco and Lucene.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please tell me how to search through all subfolders within a folder (all subspaces in a space).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was trying to run Query2.java in SDK Webservices sample by modifying the sample code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Reference reference = new Reference(STORE, null, "/app:company_home/cm:App1/cm:SP1/cm:Doc2\"");&lt;BR /&gt;Predicate predicate = new Predicate(new Reference[]{reference}, null, null);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Node[] nodes = repositoryService.get(predicate);&lt;BR /&gt;&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE,"+PARENT:\"workspace://SpacesStore/"+ node.getReference().getUuid() + "\" +TEXT:\"" + searchValue + "\"");&lt;BR /&gt;&lt;BR /&gt;This worked fine and returned all files within Doc2 folder which matched the search text. &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;/SPAN&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;Inorder to search through all subspaces within "Subprocess1", I tried the following but did not succeed…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;1. Reference reference = new Reference(STORE, null, "/app:company_home/cm:App1/cm:Subprocess1//*\"");&lt;BR /&gt;&lt;BR /&gt;2. Reference reference = new Reference(STORE, null, "/app:company_home/cm:App1/cm:Subprocess1/@cm\":name:Doc*\"");&lt;BR /&gt;&lt;BR /&gt;3. Query query = new Query(Constants.QUERY_LANG_LUCENE, "+PATH:/app:company_home/cm:App1/cm:Subprocess1//*\"+TEXT:\"" + searchValue + "\"");&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;/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;Please help!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2009 12:25:03 GMT</pubDate>
    <dc:creator>sri</dc:creator>
    <dc:date>2009-01-05T12:25:03Z</dc:date>
    <item>
      <title>Search through subspaces within a space...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208228#M161358</link>
      <description>Hi, I'm absolutely new to Alfresco and Lucene.Could someone please tell me how to search through all subfolders within a folder (all subspaces in a space).Was trying to run Query2.java in SDK Webservices sample by modifying the sample code as follows:Reference reference = new Reference(STORE, null,</description>
      <pubDate>Mon, 05 Jan 2009 12:25:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208228#M161358</guid>
      <dc:creator>sri</dc:creator>
      <dc:date>2009-01-05T12:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search through subspaces within a space...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208229#M161359</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;BLOCKQUOTE class="jive-quote"&gt;but did not succeed…&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Did you get some error message that could help us finding the problem ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, tests 1) and 2) can't work : you should give a path as third argument of Reference, and not pattern.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Test 3) should be OK if you add a space before +TEXT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A good practice is to test queries with node browser when they don't work "programmatically".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Charles Le Seac'h&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2009 06:00:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208229#M161359</guid>
      <dc:creator>cleseach</dc:creator>
      <dc:date>2009-01-09T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Search through subspaces within a space...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208230#M161360</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 trying to use OpenSearch for searching through subspaces within a space……&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How and where can I define the path where the following query will be executed??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/alfresco/service/api/search/keyword?q={searchTerms}&amp;amp;p={startPage?}&amp;amp;c={count?}&amp;amp;l={language?}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking foward to your help…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sri&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 06:30:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208230#M161360</guid>
      <dc:creator>sri</dc:creator>
      <dc:date>2009-01-27T06:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search through subspaces within a space...</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208231#M161361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The OpenSearch specification does specify restricting search to folders. To answer your question, you can't restrict it to subspaces using OpenSearch.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2009 06:49:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-through-subspaces-within-a-space/m-p/208231#M161361</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2009-01-27T06:49:14Z</dc:date>
    </item>
  </channel>
</rss>

