<?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 Searching within a specified space in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19921#M9240</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;Is it possible to configure the system to only search within a specified space, such as "Published"? I know this is an option in the Advanced Search but I want to set it so that users can only search in the "Published" space. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;supr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2006 17:35:24 GMT</pubDate>
    <dc:creator>supr</dc:creator>
    <dc:date>2006-01-31T17:35:24Z</dc:date>
    <item>
      <title>Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19921#M9240</link>
      <description>Hi, Is it possible to configure the system to only search within a specified space, such as "Published"? I know this is an option in the Advanced Search but I want to set it so that users can only search in the "Published" space. Thanks, supr</description>
      <pubDate>Tue, 31 Jan 2006 17:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19921#M9240</guid>
      <dc:creator>supr</dc:creator>
      <dc:date>2006-01-31T17:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19922#M9241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not possible to configure the system to do that at present. It would require a (pretty simple) code change. Feel free to raise an improvement request in JIRA: &lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/jira" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/jira&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2006 12:11:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19922#M9241</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-02-01T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19923#M9242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Related but not the same, how do I restrict a search to a specific space programmatically?&amp;nbsp; I know the UI is doing this, and I looked at the code but didn't get anywhere.&amp;nbsp; Some pointers would be highly appreciated.&amp;nbsp; I am trying to query using repository webservices.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 17:27:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19923#M9242</guid>
      <dc:creator>jiehuanli</dc:creator>
      <dc:date>2006-02-15T17:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19924#M9243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the special PATH keyword to search for documents within a specific space. For example, to find docs containing the text "alfresco" within space 'Company Home/myspace' you would build the Lucene search of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;PATH:"/app:company_home/sys:myspace//*" TEXT:alfresco*&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;SPAN&gt;The PATH element contains the QName based XPath of the node to search. If you take a look at the client code for:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.alfresco.web.bean.SearchContext&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;SPAN&gt;You will be able to see how our Lucene searches are built up for the web-client. As far as building the correct QName based XPaths for your nodes, there is a utility method in SearchContext.getPathFromSpaceRef() that should show you how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also if you enable the following log4j category then the web-client will log the search strings it is building when you perform a search in the client:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;log4j.logger.org.alfresco.web.bean.SearchContext=debug&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;SPAN&gt;Add that to your log4j.properties file. You can then use the Advanced Search in the client to see what kind of Lucene strings we build.&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;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 17:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19924#M9243</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-02-15T17:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19925#M9244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks so much, Kevin.&amp;nbsp; It is just what I needed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2006 17:47:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19925#M9244</guid>
      <dc:creator>jiehuanli</dc:creator>
      <dc:date>2006-02-15T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19926#M9245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know whether the improvement(change) for searching in specific space is done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do we have this changes in the Alfresco 3?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, could pls let me know how to restrict user from searching for content/document in a space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e., user can only search in a specific folder(say published space).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 06:30:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19926#M9245</guid>
      <dc:creator>rama_honge</dc:creator>
      <dc:date>2009-04-29T06:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19927#M9246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know if we can parameterize this but programmatically it is not so complex…have a look at org.alfresco.web.bean.SearchContext Object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 08:01:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19927#M9246</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-29T08:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Searching within a specified space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19928#M9247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The suggested improvement has not yet been implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kev&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Apr 2009 08:44:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-within-a-specified-space/m-p/19928#M9247</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2009-04-29T08:44:59Z</dc:date>
    </item>
  </channel>
</rss>

