<?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 Alfresco Full Text Search returning wrong results in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93961#M27769</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a document that is uploaded at&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="viewmode-value viewmode-value-date"&gt;Tue 26 Nov 2019 19:13:02 (As shown on Alfresco Share Screen),&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="viewmode-value viewmode-value-date"&gt;and in node browser we have the document created date as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;cm:created&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;d:datetime&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;&lt;DIV&gt;&lt;STRONG&gt;26 Nov 2019 19:13:02 GMT-0500 (EST)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So When im doing a AFTS with created date&amp;nbsp;,&lt;/P&gt;&lt;PRE&gt;cm:created:['2019-11-26T19:00:00' TO '2019-11-26T23:00:00']&lt;/PRE&gt;&lt;P&gt;i see&amp;nbsp;&lt;STRONG&gt;No results (I'm on EST timezone)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;even tried using AFTS serch from node browser i see&amp;nbsp;&lt;STRONG&gt;No results,&amp;nbsp;&lt;/STRONG&gt;I tried using ReST API for Search Service forming something as below (added the timezone in localization to get results)&lt;/P&gt;&lt;PRE&gt;{"query": { "language":"afts", "query": "cm:created:['2019-11-26' TO '2019-11-26']"},"localization":{"timezone":"GMT+05:00"}}&lt;/PRE&gt;&lt;P&gt;But if i use a query with 27-11-2019 (i.e the next day) i'm able to see the results&lt;/P&gt;&lt;PRE&gt;cm:created:['2019-11-27T00:13:00' TO '2019-11-27T01:00:00']&lt;/PRE&gt;&lt;P&gt;Kindly help me on how to form query in ReST Search API, &lt;STRONG&gt;without changing the created date.&lt;BR /&gt;&lt;/STRONG&gt;and help me on how this localization in query working and how alfresco full text search works on timezones&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 12:04:38 GMT</pubDate>
    <dc:creator>srikanth94</dc:creator>
    <dc:date>2019-12-23T12:04:38Z</dc:date>
    <item>
      <title>Alfresco Full Text Search returning wrong results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93961#M27769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a document that is uploaded at&amp;nbsp;&lt;STRONG&gt;&lt;SPAN class="viewmode-value viewmode-value-date"&gt;Tue 26 Nov 2019 19:13:02 (As shown on Alfresco Share Screen),&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="viewmode-value viewmode-value-date"&gt;and in node browser we have the document created date as&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;cm:created&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;d:datetime&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;DIV class="yui-dt-liner"&gt;&lt;DIV&gt;&lt;STRONG&gt;26 Nov 2019 19:13:02 GMT-0500 (EST)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;So When im doing a AFTS with created date&amp;nbsp;,&lt;/P&gt;&lt;PRE&gt;cm:created:['2019-11-26T19:00:00' TO '2019-11-26T23:00:00']&lt;/PRE&gt;&lt;P&gt;i see&amp;nbsp;&lt;STRONG&gt;No results (I'm on EST timezone)&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;even tried using AFTS serch from node browser i see&amp;nbsp;&lt;STRONG&gt;No results,&amp;nbsp;&lt;/STRONG&gt;I tried using ReST API for Search Service forming something as below (added the timezone in localization to get results)&lt;/P&gt;&lt;PRE&gt;{"query": { "language":"afts", "query": "cm:created:['2019-11-26' TO '2019-11-26']"},"localization":{"timezone":"GMT+05:00"}}&lt;/PRE&gt;&lt;P&gt;But if i use a query with 27-11-2019 (i.e the next day) i'm able to see the results&lt;/P&gt;&lt;PRE&gt;cm:created:['2019-11-27T00:13:00' TO '2019-11-27T01:00:00']&lt;/PRE&gt;&lt;P&gt;Kindly help me on how to form query in ReST Search API, &lt;STRONG&gt;without changing the created date.&lt;BR /&gt;&lt;/STRONG&gt;and help me on how this localization in query working and how alfresco full text search works on timezones&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:04:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93961#M27769</guid>
      <dc:creator>srikanth94</dc:creator>
      <dc:date>2019-12-23T12:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Full Text Search returning wrong results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93962#M27770</link>
      <description>&lt;P&gt;I tried this and as long as I use GMT time for my search, the proper information is returned. For example, I added something today with the following creation date:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-23 at 10.04.31 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/381iE1A159D280AA36BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Notice that GMT is 14:49:34. I executed the following search:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-23 at 10.04.22 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/382iA5F3BD8257B6FA98/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;So, using today's date this worked fine. I narrowed the date down to seconds around the creation date:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-12-23 at 10.11.17 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/384i7DE928D4F878147E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;And it also returned the file with today's date. I think your issue is GMT.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 15:12:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93962#M27770</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-12-23T15:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Full Text Search returning wrong results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93963#M27771</link>
      <description>&lt;P&gt;As long as we are in GMT, it is showing up results correctly, But in my case the user is in EST and he uploads the documents, at node level it is storing in GMT.&lt;/P&gt;&lt;P&gt;I doubt the search results are displayed from the DB, where it is returning the GMT results&lt;/P&gt;&lt;P&gt;1. User from EST uploads document at&amp;nbsp;&lt;STRONG&gt;26 Nov 2019 19:13:02&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2. And he tries to search the doc that he has uploaded on 26th, but the date that is stored at backend is in GMT (i.e 27 Nov 2019 00:13:02).&lt;/P&gt;&lt;P&gt;3. So, as the document is having 27th at node level, it is not coming up in the result set'&lt;/P&gt;&lt;P&gt;Does search results display based on GMT(UTC) by default? is there a way to overcome this making results compatible with clients local time zone&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround im sending&amp;nbsp;&lt;STRONG&gt;26 Nov 2019 19:13:02-0500 ,&amp;nbsp;&lt;/STRONG&gt;i.e converting GMT to EST and this is bring up the results. But this cant be helpful if there are mutiple user from multiple time zone&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:46:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93963#M27771</guid>
      <dc:creator>srikanth94</dc:creator>
      <dc:date>2019-12-23T16:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Full Text Search returning wrong results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93964#M27772</link>
      <description>&lt;P&gt;I found a previous post about this....&lt;A href="https://hub.alfresco.com/t5/alfresco-content-services-forum/serious-date-time-problems-in-alfresco/td-p/139647" target="_blank" rel="nofollow noopener noreferrer"&gt;https://hub.alfresco.com/t5/alfresco-content-services-forum/serious-date-time-problems-in-alfresco/td-p/139647&lt;/A&gt;&amp;nbsp;that has some suggestions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure which API you are using, but I believe the REST API provides a parameter for timezone.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 18:05:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93964#M27772</guid>
      <dc:creator>jljwoznica</dc:creator>
      <dc:date>2019-12-23T18:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Full Text Search returning wrong results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93965#M27773</link>
      <description>&lt;P&gt;I have gone through that post and tried using the same, but i was unscuccessful . the query im trying is mentioned in my main post&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{"query": { "language":"afts", "query": "cm:created:['2019-11-26' TO '2019-11-26']"},"localization":{"timezone":"GMT+05:00"}}&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Dec 2019 05:08:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-full-text-search-returning-wrong-results/m-p/93965#M27773</guid>
      <dc:creator>srikanth94</dc:creator>
      <dc:date>2019-12-24T05:08:55Z</dc:date>
    </item>
  </channel>
</rss>

