<?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 Switch between Solr and DB for Query Execution in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/switch-between-solr-and-db-for-query-execution/m-p/56632#M20491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Using Alfresco Community - 5.0.0 version.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Tried below properties in alfresco-global.properties file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;queryConsistency=EVENTUAL&lt;/STRONG&gt; then all queries are going to Solr.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;queryConsistency=TRANSACTIONAL&lt;/STRONG&gt; then all queries are going to DB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And &lt;STRONG&gt;Default mode&lt;/STRONG&gt;&amp;nbsp;executes all queries from DB first then Solr in case of failure from DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q1:&amp;nbsp;Is there any mode by which I can query Solr first and if there are no results from Solr then query DB in one transaction?&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Q2:&amp;nbsp;Can we execute some queries from Solr and some from DB from JAVA side?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2018 12:06:41 GMT</pubDate>
    <dc:creator>devkinandanchau</dc:creator>
    <dc:date>2018-10-23T12:06:41Z</dc:date>
    <item>
      <title>Switch between Solr and DB for Query Execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-between-solr-and-db-for-query-execution/m-p/56632#M20491</link>
      <description>Using Alfresco Community - 5.0.0 version.Tried below properties in alfresco-global.properties file:queryConsistency=EVENTUAL then all queries are going to Solr.queryConsistency=TRANSACTIONAL then all queries are going to DB.&amp;nbsp;And Default mode&amp;nbsp;executes all queries from DB first then Solr in case of fa</description>
      <pubDate>Tue, 23 Oct 2018 12:06:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-between-solr-and-db-for-query-execution/m-p/56632#M20491</guid>
      <dc:creator>devkinandanchau</dc:creator>
      <dc:date>2018-10-23T12:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Solr and DB for Query Execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-between-solr-and-db-for-query-execution/m-p/56633#M20492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you refer to the following properties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solr.query.cmis.queryConsistency&lt;/P&gt;&lt;P&gt;solr.query.fts.queryConsistency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q1: No, you have three modes&amp;nbsp;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;TRANSACTIONAL_IF_POSSIBLE (first database, if not SOLR), TRANSACTIONAL (database only), EVENTUAL (solr&amp;nbsp;only).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #58595b; background-color: #ffffff;"&gt;Q2: In the first mode, y&lt;/SPAN&gt;ou can compare the results of a CMIS query obtained from database, with a solr-based query "introducing" an extra part&amp;nbsp;that makes the query only to be solved with SOLR (for example adding some unsupported predicate for database)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://docs.alfresco.com/5.0/concepts/intrans-metadata-query.html" title="https://docs.alfresco.com/5.0/concepts/intrans-metadata-query.html" rel="nofollow noopener noreferrer"&gt;Transactional metadata queries supported by database | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 10:07:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-between-solr-and-db-for-query-execution/m-p/56633#M20492</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2018-10-24T10:07:16Z</dc:date>
    </item>
  </channel>
</rss>

