<?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, stores and their purposes in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192380#M145510</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;SPAN&gt;I am implementing a service that searches in old versions of content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I have understood reading about the SearchService I should change the StoreRef being used in the SearchService.query(…) call. I use Alfresco 2.2 e. I have found several threads about this but none explains the problem fully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To start, lets look at the different stores I know about:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL style="list-style-type:decimal;"&gt;&lt;LI&gt;workspace://SpacesStore - the normal content store&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;workspace://lightWeightVersionStore - should be the store for old versions?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;archive://SpacesStore - the trash&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;system://system - system information&lt;/LI&gt;&lt;/OL&gt;&lt;SPAN&gt;Also, I have read about versionStore://lightWeightVersionStore, versionstore://main, workspace://default and the new workspace://version2Store&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My first thought was that I should use the workspace://lightWeightVersionStore when searching for old versions. However, specifying this store always results in 0 hits, whatever I search for. Neither&amp;nbsp; versionStore://lightWeightVersionStore gives any results. The search returns results when i use the workspace://SpacesStore or archive://SpacesStore, but not the old versions of course…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what I have read in the forum I am not the first person trying to search in previous content versions. Anyone able to clarify the store definitions above?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thought was that no indexes are created for old versions but when tracing the VersionService.createVersion() I am able to verify that the IndexerComponent is called. &lt;/SPAN&gt;&lt;STRONG&gt;And it uses the workspace://lightWeightVersionStore for its nodes.&lt;/STRONG&gt;&lt;SPAN&gt; Does this mean that old versions are stored here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//Carl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Oct 2008 13:47:14 GMT</pubDate>
    <dc:creator>calle</dc:creator>
    <dc:date>2008-10-08T13:47:14Z</dc:date>
    <item>
      <title>Search, stores and their purposes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192380#M145510</link>
      <description>HiI am implementing a service that searches in old versions of content.From what I have understood reading about the SearchService I should change the StoreRef being used in the SearchService.query(…) call. I use Alfresco 2.2 e. I have found several threads about this but none explains the problem f</description>
      <pubDate>Wed, 08 Oct 2008 13:47:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192380#M145510</guid>
      <dc:creator>calle</dc:creator>
      <dc:date>2008-10-08T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search, stores and their purposes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192381#M145511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have made some progress…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I believe that the Store to search in is workspace://lightWeightVersionStore. If I search for all objects (by query PATH:"/*") then I get the expected number of hits back. What I do not understand is what I am getting back &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I can see it is of type {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/versionstore/1.0}versionHistory" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/versionstore/1.0}versionHistory&lt;/A&gt;&lt;SPAN&gt; and I get a bunch of properties for each node for example the node id of the versioned node in workspace://SpacesStore (VersionModel.PROP_QNAME_VERSIONED_NODE_ID).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I am able to get all the nodes in the lightWeightVersionStore and get a reference to the current version node. What I am still not able to do is search in the lightWeightVersionStore for old properties or in content without manually searching in the list of returned versionHistory objects. What I wonder is if only the properties in the versionstore model are being indexed for old versions which would make it impossible to search for properties or content in the old version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2008 15:15:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192381#M145511</guid>
      <dc:creator>calle</dc:creator>
      <dc:date>2008-10-08T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search, stores and their purposes</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192382#M145512</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 think you're right on all points. The lightweightVersionStore storage model is very specific. As each native property is mapped to a node in this store, a document in the workspace://SpacesStore will be mapped to several nodes here, and a composite Lucene search will not work because criteria would have to match on different nodes… Worse, the content is not indexed at all in the lightweightVersionStore !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Performing complex searches in this store will not be easy&amp;nbsp; :cry:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 09:37:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-stores-and-their-purposes/m-p/192382#M145512</guid>
      <dc:creator>rivarola</dc:creator>
      <dc:date>2008-10-13T09:37:52Z</dc:date>
    </item>
  </channel>
</rss>

