<?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: DB-AFTS with date and datetime in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62026#M21543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="73554" __jive_macro_name="user" _jive_internal="true" data-id="73554" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/afaust" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;thanks for your help. &lt;BR /&gt;I suspected date queries were not fully supported with db fts. The curious thing seems that dates are handled as pure plain text. As you can see in the last examples, I use the wildcard to search for a date object like a string. I even had to escape the semicolon for the time part. &lt;BR /&gt;Anyway I used db fts only to see how it works with date and datetime objects. &lt;BR /&gt;For the transactional queries I usually use db cmis to search for exact date or date ranges but sometime it's useful even to have an alternative solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2018 17:36:33 GMT</pubDate>
    <dc:creator>joe_l3</dc:creator>
    <dc:date>2018-03-09T17:36:33Z</dc:date>
    <item>
      <title>DB-AFTS query with date and datetime</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62024#M21541</link>
      <description>Has anyone ever tried db-afts with date or datetime ? It seems iso dates are stored as pure plain text into the database causing inconsistent results in transactional query.I guess I missing something else but I was unable to get valid results.Content stored in Alfresco 5.2.g with a custom date "myM</description>
      <pubDate>Fri, 09 Mar 2018 15:16:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62024#M21541</guid>
      <dc:creator>joe_l3</dc:creator>
      <dc:date>2018-03-09T15:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: DB-AFTS with date and datetime</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62025#M21542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date FTS&amp;nbsp;queries are not fully supported against the DB. Various features of the date support rely on index-specific handling. There are is no partial match support, so just selecting by the date without time does not work and is expected as such.&amp;nbsp;In the example with the different timezone you are also missing the milliseconds, so even with timezone conversion (which I doubt would work) you'll always have a mismatch there.&lt;/P&gt;&lt;P&gt;I would recommend to never rely on DB FTS for date queries unless you are working with exact matches. I prefer using CMIS QL against the DB for any date queries, especially if I need to perform some "between X and Y" selection logic, since CMIS QL&amp;nbsp;offers better range and timestamp support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:15:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62025#M21542</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-09T16:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: DB-AFTS with date and datetime</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62026#M21543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="73554" __jive_macro_name="user" _jive_internal="true" data-id="73554" data-objecttype="3" data-type="person" href="https://community.alfresco.com/people/afaust" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;thanks for your help. &lt;BR /&gt;I suspected date queries were not fully supported with db fts. The curious thing seems that dates are handled as pure plain text. As you can see in the last examples, I use the wildcard to search for a date object like a string. I even had to escape the semicolon for the time part. &lt;BR /&gt;Anyway I used db fts only to see how it works with date and datetime objects. &lt;BR /&gt;For the transactional queries I usually use db cmis to search for exact date or date ranges but sometime it's useful even to have an alternative solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 17:36:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/db-afts-query-with-date-and-datetime/m-p/62026#M21543</guid>
      <dc:creator>joe_l3</dc:creator>
      <dc:date>2018-03-09T17:36:33Z</dc:date>
    </item>
  </channel>
</rss>

