<?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: Query Search with space and range date parameter in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229208#M182338</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thaks chooli, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;works fine but I didn't understand what's wrong in my code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Mar 2010 10:32:38 GMT</pubDate>
    <dc:creator>ant_batt</dc:creator>
    <dc:date>2010-03-23T10:32:38Z</dc:date>
    <item>
      <title>Query Search with space and range date parameter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229206#M182336</link>
      <description>Hi to all,I have a problem. I want to search, with Web Service, a content that have a date range (that user insert in input) and are present in a specific space.I have try with this code, but the result is a ResultsSet of content that are present in a space that I don't want…SimpleDateFormat df = Ca</description>
      <pubDate>Fri, 19 Mar 2010 15:32:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229206#M182336</guid>
      <dc:creator>ant_batt</dc:creator>
      <dc:date>2010-03-19T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query Search with space and range date parameter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229207#M182337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the following codes, I had the same case like yours in my project&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;GregorianCalendar gc = new GregorianCalendar();&lt;BR /&gt;gc.add(Calendar.MONTH,-1);&lt;BR /&gt;String monthAgo = new SimpleDateFormat("yyyy-MM-dd").format(gc.getTime());&lt;BR /&gt;&lt;BR /&gt;String path="+PATH:\"/app:company_home/cm:portale/cm:Istruzione/cm:Contenuti/cm:Home/cm:normativa/*\"";&lt;BR /&gt;String range=" +@cm\\:created:[" + monthAgo + "T00:00:00 TO NOW]";&lt;BR /&gt;String str=path+range;&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, str);&lt;BR /&gt;QueryResult queryResult = repositoryService.query(STORE, query, false);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't test these codes, but it should work&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 09:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229207#M182337</guid>
      <dc:creator>chooli</dc:creator>
      <dc:date>2010-03-23T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query Search with space and range date parameter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229208#M182338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thaks chooli, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;works fine but I didn't understand what's wrong in my code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Mar 2010 10:32:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229208#M182338</guid>
      <dc:creator>ant_batt</dc:creator>
      <dc:date>2010-03-23T10:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query Search with space and range date parameter</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229209#M182339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Your problem might have been this line&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String range="@cm\\:created:[" + dateI + " TO " + dateF +"]'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;needing to read like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;String range=" +@cm\\:created:[" + dateI + " TO " + dateF +"]'";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;?&amp;nbsp; Not sure if it caused the entire problem, but I think the leading space and + are required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;scott&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Mar 2010 21:13:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/query-search-with-space-and-range-date-parameter/m-p/229209#M182339</guid>
      <dc:creator>rscottm</dc:creator>
      <dc:date>2010-03-29T21:13:15Z</dc:date>
    </item>
  </channel>
</rss>

