<?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: How to search a space throuth webscripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100435#M69589</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can just use ANCESTOR:spaceURI in you lucene search to restrict the search to a particular space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my system these are indexed as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;workspace://SpacesStore/84e99d7c-40d0-11dc-b23e-0531d81c5d56&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess you need to contruct a URI in a similar format. I would guess that the GUID is the id of the store which you should be able to get using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;userhome.childrenByXPath("*[@cm:name='"+path+"']/*").id&lt;SPAN class="line-numbers-rows"&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, 06 Aug 2007 09:52:18 GMT</pubDate>
    <dc:creator>mark_smithson</dc:creator>
    <dc:date>2007-08-06T09:52:18Z</dc:date>
    <item>
      <title>How to search a space throuth webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100432#M69586</link>
      <description>I know the space name. How to make the search for the space name space through web scripts with out passing the full path value. I want to pass only the space name in the path.&amp;nbsp; Say my path value is&amp;nbsp; 'Test'&amp;nbsp; it may be any where down the line in the space hierarchy. I am using this code in my web scr</description>
      <pubDate>Fri, 03 Aug 2007 20:03:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100432#M69586</guid>
      <dc:creator>shanmugaraja</dc:creator>
      <dc:date>2007-08-03T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a space throuth webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100433#M69587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am able to get the node through the following method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;userhome.childrenByXPath("*[cm:"+path+"]/*"); &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;However I would like to know after getting the node, is it possible to get the Lucene search path from the node&amp;nbsp; and pass it the search&amp;nbsp; or&amp;nbsp; do we need to construct path and pass it&amp;nbsp; to Lucene Search in Web Scripts. Any help is appreciated. Thanks in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2007 19:55:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100433#M69587</guid>
      <dc:creator>shanmugaraja</dc:creator>
      <dc:date>2007-08-05T19:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a space throuth webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100434#M69588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you trying to achieve in your Javascript?&amp;nbsp; There might be an easier way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 09:51:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100434#M69588</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-06T09:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a space throuth webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100435#M69589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you can just use ANCESTOR:spaceURI in you lucene search to restrict the search to a particular space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my system these are indexed as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;workspace://SpacesStore/84e99d7c-40d0-11dc-b23e-0531d81c5d56&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would guess you need to contruct a URI in a similar format. I would guess that the GUID is the id of the store which you should be able to get using&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;userhome.childrenByXPath("*[@cm:name='"+path+"']/*").id&lt;SPAN class="line-numbers-rows"&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, 06 Aug 2007 09:52:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100435#M69589</guid>
      <dc:creator>mark_smithson</dc:creator>
      <dc:date>2007-08-06T09:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to search a space throuth webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100436#M69590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;David and Mark thanks for your responses. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am trying to achieve is get the content nodes for a space and a set of categories.&amp;nbsp; The space and the categories are the arguments to the Web scripts and the space and the categories may be in any hierarchy. The categories are made unique in our alfesco.&amp;nbsp; What i need to do is to construct the lucene search query and make the search based on the arguments and fetch the content nodes then to display the results.&amp;nbsp; As per my understanding we need to pass or need to construct and pass the full path for any space or category in the luence search. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;eg path is below&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;"( PATH:\"/app:company_home/cm:Business_x0020_Gateway/cm:links//*\" AND ( PATH:\"/cm:categoryRoot/cm:generalclassifiable/cm:Languages//*\" OR PATH:\"/cm:categoryRoot/cm:generalclassifiable/cm:Regions//*\" ) ) AND (( TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;"));&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I am looking for a way to construct the query. I could get the display path and construct the query. How ever is there any other better way to do the same.&amp;nbsp; We&amp;nbsp; have some restictions to use the saved search in this case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is appreciated. Thanks a lot in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 12:42:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-search-a-space-throuth-webscripts/m-p/100436#M69590</guid>
      <dc:creator>shanmugaraja</dc:creator>
      <dc:date>2007-08-06T12:42:44Z</dc:date>
    </item>
  </channel>
</rss>

