<?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 transactional metadata query in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/transactional-metadata-query/m-p/38505#M16201</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an application with an "inbox" where a user can click a document then enter information.&lt;/P&gt;&lt;P&gt;After that properties and an aspect are assigned to that document and the document is moved.&lt;BR /&gt;Now this document is assigned to a "container" with other documents and the documents of this container is shown.&lt;/P&gt;&lt;P&gt;Due to the fact that these documents are not in the same folder in Alfresco I have to do a query to get back the documents but the newly assigned document is not yet shown because solr has not indexed it this fast.&lt;/P&gt;&lt;P&gt;Now I've seens this article&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/concepts/intrans-metadata-configure.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/intrans-metadata-configure.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is written "&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;solr.query.cmis.queryConsistency&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;solr.query.fts.queryConsistency&lt;SPAN&gt;&amp;nbsp;properties can also be set per query on the&amp;nbsp;&lt;/SPAN&gt;SearchParameters&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;QueryOptions&lt;SPAN&gt;&amp;nbsp;objects."&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;but I'm not sure how to use this. At the moment I create a session like decripted here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.0/pra/1/concepts/opencmis-ext-using.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.0/pra/1/concepts/opencmis-ext-using.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then I create the query like this:&lt;/P&gt;&lt;P&gt;QueryStatement qs = session.createQueryStatement(queryString);&lt;BR /&gt;qs.query(false, operationContext);&lt;/P&gt;&lt;P&gt;I've seens this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/references/dev-services-search.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/references/dev-services-search.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I don't know how to get the "searchService".&lt;/P&gt;&lt;P&gt;Could anybody write me how to include these parameter or send me a link to a tutorial as I found really little information on how to do this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 09 Mar 2020 16:44:10 GMT</pubDate>
    <dc:creator>mundifaber</dc:creator>
    <dc:date>2020-03-09T16:44:10Z</dc:date>
    <item>
      <title>transactional metadata query</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/transactional-metadata-query/m-p/38505#M16201</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an application with an "inbox" where a user can click a document then enter information.&lt;/P&gt;&lt;P&gt;After that properties and an aspect are assigned to that document and the document is moved.&lt;BR /&gt;Now this document is assigned to a "container" with other documents and the documents of this container is shown.&lt;/P&gt;&lt;P&gt;Due to the fact that these documents are not in the same folder in Alfresco I have to do a query to get back the documents but the newly assigned document is not yet shown because solr has not indexed it this fast.&lt;/P&gt;&lt;P&gt;Now I've seens this article&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/concepts/intrans-metadata-configure.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/concepts/intrans-metadata-configure.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is written "&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;solr.query.cmis.queryConsistency&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;solr.query.fts.queryConsistency&lt;SPAN&gt;&amp;nbsp;properties can also be set per query on the&amp;nbsp;&lt;/SPAN&gt;SearchParameters&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;QueryOptions&lt;SPAN&gt;&amp;nbsp;objects."&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;but I'm not sure how to use this. At the moment I create a session like decripted here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.0/pra/1/concepts/opencmis-ext-using.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.0/pra/1/concepts/opencmis-ext-using.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;then I create the query like this:&lt;/P&gt;&lt;P&gt;QueryStatement qs = session.createQueryStatement(queryString);&lt;BR /&gt;qs.query(false, operationContext);&lt;/P&gt;&lt;P&gt;I've seens this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.alfresco.com/5.2/references/dev-services-search.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/references/dev-services-search.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I don't know how to get the "searchService".&lt;/P&gt;&lt;P&gt;Could anybody write me how to include these parameter or send me a link to a tutorial as I found really little information on how to do this?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 16:44:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/transactional-metadata-query/m-p/38505#M16201</guid>
      <dc:creator>mundifaber</dc:creator>
      <dc:date>2020-03-09T16:44:10Z</dc:date>
    </item>
  </channel>
</rss>

