<?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 in java in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244727#M197857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Javascript API is a server-side implementation that Alfresco implemented with Mozilla Rhino.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means that whenever you invoke a Javascript search, in the Alfresco back-end will be invoke the Java Search service of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the Alfresco Javascript API is a wrapper of the Alfresco Java API, but you don't have all the methods and objects scope with all the capabilities of the Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Javascript API is a wrapper of a subgroup of functionality available in the Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another difference is that in Javascript whenever you would like to invoke a search, you need to escape special characters two times for your query ("\\").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise if you are using Java API you need only to escape special character one time ("\").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Nov 2009 07:30:18 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2009-11-13T07:30:18Z</dc:date>
    <item>
      <title>lucene in java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244723#M197853</link>
      <description>hi everyone,i did a lucene search in javascript in alfresco.I've constructed a search string and ……model.searchString = searchString;var results = search.luceneSearch(searchString);model.documents = results;‍‍‍‍‍‍‍‍was enough. But in java side how can i do that?&amp;nbsp; I've seen some codes for lucene sear</description>
      <pubDate>Wed, 07 Oct 2009 13:55:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244723#M197853</guid>
      <dc:creator>gokceng</dc:creator>
      <dc:date>2009-10-07T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: lucene in java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244724#M197854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The query parameter should resemble the syntax referenced &lt;/SPAN&gt;&lt;A href="http://lucene.apache.org/java/2_3_2/queryparsersyntax.html" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;&lt;SPAN&gt;. I'm not sure about the JavaScript side of things as I've tried to stay away from server side JavaScript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2009 16:28:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244724#M197854</guid>
      <dc:creator>rliu</dc:creator>
      <dc:date>2009-10-07T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: lucene in java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244725#M197855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi thanks for reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've found the solution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;after constructing the search string saying &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model.searchstring = searchString;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and then in a different place I could call &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myFunction(searchstring);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this myFunction is a function that i wrote in Java. Now i'm able to use searchstring that I've constructed in javascript, in Java side. As a result it is the same string that you use in:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var results = search.luceneSearch(searchString);&amp;nbsp; //javascript&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;results = serviceRegistry.getSearchService().query(companyHome.getStoreRef(), "lucene", searchString);&amp;nbsp;&amp;nbsp;&amp;nbsp; //Java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;May it helps others…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 12:16:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244725#M197855</guid>
      <dc:creator>gokceng</dc:creator>
      <dc:date>2009-10-20T12:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: lucene in java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244726#M197856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi gokceng (and rliu),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know what the difference would be to using java-search versus javascript-search?&amp;nbsp; It seems if we prepared the search string before we even reach server side, will it even matter?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm asking because I am not sure where I should parse my search query while still on the front end or send everything to server (most likely as JSON) and parse query from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sgomez&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 01:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244726#M197856</guid>
      <dc:creator>sgomez</dc:creator>
      <dc:date>2009-11-13T01:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: lucene in java</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244727#M197857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Javascript API is a server-side implementation that Alfresco implemented with Mozilla Rhino.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This means that whenever you invoke a Javascript search, in the Alfresco back-end will be invoke the Java Search service of Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the Alfresco Javascript API is a wrapper of the Alfresco Java API, but you don't have all the methods and objects scope with all the capabilities of the Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Javascript API is a wrapper of a subgroup of functionality available in the Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another difference is that in Javascript whenever you would like to invoke a search, you need to escape special characters two times for your query ("\\").&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise if you are using Java API you need only to escape special character one time ("\").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Nov 2009 07:30:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-in-java/m-p/244727#M197857</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2009-11-13T07:30:18Z</dc:date>
    </item>
  </channel>
</rss>

