<?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 Query Historical Document Versions by Custom Metadata ? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500929#M40895</link>
    <description>&lt;P&gt;Version store is not indexes in Elasticsearch.&lt;/P&gt;
&lt;P&gt;Try db-afts syntax, that uses directly the database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.hyland.com/r/Alfresco/Alfresco-Search-Enterprise/5.3/Alfresco-Search-Enterprise/Configure/Transactional-metadata-query" target="_blank"&gt;https://docs.hyland.com/r/Alfresco/Alfresco-Search-Enterprise/5.3/Alfresco-Search-Enterprise/Configure/Transactional-metadata-query&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2026 05:59:19 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2026-09-15T05:59:19Z</dc:date>
    <item>
      <title>How to Query Historical Document Versions by Custom Metadata ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500903#M40894</link>
      <description>&lt;P&gt;I’m using ACS 25.3 with Search Enterprise 5.3 and Elasticsearch.&lt;/P&gt;&lt;P&gt;I have a requirement to query previous document versions based on custom metadata using AFTS.&lt;/P&gt;&lt;P&gt;For example, I would like to search for documents based on a custom property and retrieve matching historical versions of those documents, rather than only the current version.&lt;/P&gt;&lt;P&gt;Is this possible using AFTS? If so, what would be the appropriate query syntax or approach to achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2026 15:59:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500903#M40894</guid>
      <dc:creator>med</dc:creator>
      <dc:date>2026-09-14T15:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Query Historical Document Versions by Custom Metadata ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500929#M40895</link>
      <description>&lt;P&gt;Version store is not indexes in Elasticsearch.&lt;/P&gt;
&lt;P&gt;Try db-afts syntax, that uses directly the database.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.hyland.com/r/Alfresco/Alfresco-Search-Enterprise/5.3/Alfresco-Search-Enterprise/Configure/Transactional-metadata-query" target="_blank"&gt;https://docs.hyland.com/r/Alfresco/Alfresco-Search-Enterprise/5.3/Alfresco-Search-Enterprise/Configure/Transactional-metadata-query&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 05:59:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500929#M40895</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2026-09-15T05:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Query Historical Document Versions by Custom Metadata ?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500931#M40896</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Thanks for the suggestion. I understand that the Version Store is not indexed in Elasticsearch and that&amp;nbsp;db-afts&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;can be used to query the database directly.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;However, I noticed something in the API Explorer documentation for the Search API regarding the &lt;STRONG&gt;Request Scope.&lt;/STRONG&gt;It states that, in addition to the default &lt;STRONG&gt;nodes&lt;/STRONG&gt; location , the search scope can be set to &lt;STRONG&gt;versions &lt;/STRONG&gt;or&lt;STRONG&gt; deleted-nodes.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;For example:&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/FONT&gt;&lt;EM&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;"scope": { "locations": ["versions"] }&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;This seems to indicate that the search API can target the version Store explicitly ?? could custom metadata on historical versions be queried this way ?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 08:08:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-query-historical-document-versions-by-custom-metadata/m-p/500931#M40896</guid>
      <dc:creator>med</dc:creator>
      <dc:date>2026-09-15T08:08:29Z</dc:date>
    </item>
  </channel>
</rss>

