<?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 for documents in a space with specific attributes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240668#M193798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone know if its possible construct a lucene search that would let you search for documents that are only in spaces that have a specificy space property. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, for example we have student spaces. The space has a 'school'&amp;nbsp; property. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, inside student space we have subfolders with document types. So say, type1, type2, type3, etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I construct a search that says 'find me all documents of 'type1' where its parent space has the matching property of 'School = 'Some School Name' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also wondering perhaps if it would be quicker to get all the possible list of spaces matching the first criteria , and then re-query the resultSet with the second set of criteria - I don't see a away (other than perhaps looping through the resultSet itself) to do this though. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Path type queries seem very slow though…&amp;nbsp; ideas? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2009 15:36:29 GMT</pubDate>
    <dc:creator>jneeve</dc:creator>
    <dc:date>2009-07-23T15:36:29Z</dc:date>
    <item>
      <title>Searching for documents in a space with specific attributes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240668#M193798</link>
      <description>Does anyone know if its possible construct a lucene search that would let you search for documents that are only in spaces that have a specificy space property. So, for example we have student spaces. The space has a 'school'&amp;nbsp; property. Then, inside student space we have subfolders with document typ</description>
      <pubDate>Thu, 23 Jul 2009 15:36:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240668#M193798</guid>
      <dc:creator>jneeve</dc:creator>
      <dc:date>2009-07-23T15:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for documents in a space with specific attributes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240669#M193799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sure that you can try to do this query in 2 steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Step 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find the right space (customPropertySpace="school"), in this way you'll get the nodeRef of the parent, with the following Lucene query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;@yourCustomPrefix\:yourCustomProperty:"school"&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;Step 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Find all the content of the type1 as children of the previous nodeRef that you have found (parent), with the following Lucene query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PARENT:"parentNodeRef.getId()" AND TYPE:"yourCustomPrefix:type1"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 17:17:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240669#M193799</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-07-23T17:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for documents in a space with specific attributes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240670#M193800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, can you elaborate a bit on how you would actually combine the two in lucene? Or some sample pseudo code..&amp;nbsp; ie? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var searchStr = "@sf\\:currentSchool:\"123\" AND (PARENT:"parentNodeRef.getId()" AND&amp;nbsp; ASPECT:\"{customModel.docType}docType\"";&lt;BR /&gt;documents = search.luceneSearch(searchStr);&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 17:48:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240670#M193800</guid>
      <dc:creator>jneeve</dc:creator>
      <dc:date>2009-07-23T17:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for documents in a space with specific attributes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240671#M193801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What was the final solution for this topic?&amp;nbsp; I have a similar need only I have active, on old, and closed project folders.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Feb 2010 22:05:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/searching-for-documents-in-a-space-with-specific-attributes/m-p/240671#M193801</guid>
      <dc:creator>tomu702</dc:creator>
      <dc:date>2010-02-03T22:05:20Z</dc:date>
    </item>
  </channel>
</rss>

