<?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: lucene problem  using webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170959#M124224</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paths are stored in ISO9075 format, so you need to ISO9075 encode them before searching.&amp;nbsp; For most alphanumeric strings, this won't change the value at all, but there are corner cases (including strings that start with numeric characters) that will be modified by ISO9075 encoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a utility class (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/ISO9075.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/ISO9075.html&lt;/A&gt;&lt;SPAN&gt;) that provides utility functions for encoding/decoding to/from ISO9075.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2008 21:32:04 GMT</pubDate>
    <dc:creator>pmonks</dc:creator>
    <dc:date>2008-05-19T21:32:04Z</dc:date>
    <item>
      <title>lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170958#M124223</link>
      <description>Hi,Here is my sample javascript:var fileName="data";var folderName="789";&amp;nbsp;&amp;nbsp;&amp;nbsp;var queryString = "@\\{http\\://www.alfresco.org/model/content/1.0\\}name:*'+fileName+'*" ;&amp;nbsp;&amp;nbsp;&amp;nbsp;var srchQuery="PATH:\"/app:company_home/cm:TestData/cm:"+folderName+"}//*\" AND "+queryString+"\"";logger.log("&amp;gt;&amp;gt;&amp;gt; Lucene</description>
      <pubDate>Mon, 19 May 2008 21:10:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170958#M124223</guid>
      <dc:creator>kayan</dc:creator>
      <dc:date>2008-05-19T21:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170959#M124224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paths are stored in ISO9075 format, so you need to ISO9075 encode them before searching.&amp;nbsp; For most alphanumeric strings, this won't change the value at all, but there are corner cases (including strings that start with numeric characters) that will be modified by ISO9075 encoding.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a utility class (&lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/ISO9075.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/util/ISO9075.html&lt;/A&gt;&lt;SPAN&gt;) that provides utility functions for encoding/decoding to/from ISO9075.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Peter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2008 21:32:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170959#M124224</guid>
      <dc:creator>pmonks</dc:creator>
      <dc:date>2008-05-19T21:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170960#M124225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Peter,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your quick solution.&amp;nbsp; It worked on my end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kayan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 May 2008 10:52:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170960#M124225</guid>
      <dc:creator>kayan</dc:creator>
      <dc:date>2008-05-22T10:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170961#M124226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the same discussion at &lt;/SPAN&gt;&lt;A href="https://issues.alfresco.com/jira/browse/AWC-1862" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/AWC-1862&lt;/A&gt;&lt;SPAN&gt; but I'm uncertain how I could use the encoding function. Is it usable in a Freemarker template or a javascript inside a Freemarker template?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried &amp;lt;#assign Folder=ISO9075.encode(space.properties.name)&amp;gt; or is it &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;#assign Folder=${space.properties.name}.encode?ISO9075&amp;gt; ? Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2008 18:29:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170961#M124226</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2008-12-14T18:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170962#M124227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Result = ISO9075Encode(MyPath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in a javascript would do it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Dec 2008 16:34:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170962#M124227</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2008-12-23T16:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170963#M124228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Should it not be &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var Result = search.ISO9075Encode(mypath);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get an error without the search part&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2009 11:17:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170963#M124228</guid>
      <dc:creator>johanpi</dc:creator>
      <dc:date>2009-03-31T11:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: lucene problem  using webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170964#M124229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You're perfectly right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One note: Alfresco 3 is needed for this encoding conversion, 2.x throws an error due to the lack of the corresponding function.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 16:52:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-problem-using-webscript/m-p/170964#M124229</guid>
      <dc:creator>_sax</dc:creator>
      <dc:date>2009-04-06T16:52:08Z</dc:date>
    </item>
  </channel>
</rss>

