<?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 Search using a variable in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87170#M26295</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We are still using Alfresco 4.2. So was using this lucene serach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soon we would be moving to 5.2.x . Thanks for your suggestion . Is there any knowledge hub where I can find few examples of query-language fts-alfresco. This would help us in future when our migration to latest Alfresco would complete.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 08:32:34 GMT</pubDate>
    <dc:creator>soum201</dc:creator>
    <dc:date>2020-10-05T08:32:34Z</dc:date>
    <item>
      <title>lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87166#M26291</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to have a custom javascript for which I need to serach some document name from csv. if the name exist returns true else false.&lt;/P&gt;&lt;P&gt;I can loop thorugh the csv but facing issue where I need to serach the doucment by name. I am trying to use lucene search. Below is the part which I am trying.&lt;/P&gt;&lt;P&gt;/////////////////////////&lt;/P&gt;&lt;P&gt;var found= "testAlfrescoDoc.pdf";&lt;BR /&gt;var nodes = search.luceneSearch("@name:found");&lt;/P&gt;&lt;P&gt;logger.log("nodes =" + nodes);&lt;/P&gt;&lt;P&gt;////////////////////////////////&lt;/P&gt;&lt;P&gt;But the above is returning blank. Any help in this would be really appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 11:47:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87166#M26291</guid>
      <dc:creator>soum201</dc:creator>
      <dc:date>2020-10-03T11:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87167#M26292</link>
      <description>&lt;P&gt;This '&lt;SPAN&gt;@name:found"&lt;/SPAN&gt;&amp;nbsp;will be simply considered as string. You need to append the variable value.&lt;/P&gt;
&lt;P&gt;Try, see if it works :&lt;/P&gt;
&lt;PRE&gt;var found= "testAlfrescoDoc.pdf";
var nodes = search.luceneSearch("@name:"+found);

logger.log("nodes =" + nodes);&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Oct 2020 20:18:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87167#M26292</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-10-03T20:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87168#M26293</link>
      <description>&lt;P&gt;In an additional suggestion I recommend to stop using lucenseSearch and switch to the query function in the search root object, using the query language fts-alfresco. lucene is a legacy query language still technically available in Alfresco, but no longer receiving any enhancements / improvements since around version 4.2 - only CMIS and FTS are the officially supported / recommended query languages.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 07:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87168#M26293</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-10-05T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87169#M26294</link>
      <description>&lt;P&gt;Thanks for pointing this out&lt;/P&gt;&lt;P&gt;It has worked now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:28:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87169#M26294</guid>
      <dc:creator>soum201</dc:creator>
      <dc:date>2020-10-05T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87170#M26295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We are still using Alfresco 4.2. So was using this lucene serach.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soon we would be moving to 5.2.x . Thanks for your suggestion . Is there any knowledge hub where I can find few examples of query-language fts-alfresco. This would help us in future when our migration to latest Alfresco would complete.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Soumya&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:32:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87170#M26295</guid>
      <dc:creator>soum201</dc:creator>
      <dc:date>2020-10-05T08:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: lucene Search using a variable</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87171#M26296</link>
      <description>&lt;P&gt;Even in 4.2 lucene is already legacy and has not received some of the improvements added to 4.2 with regards to search. E.g. lucene search is not able to use transactional metadata queries which were introduced in 4.2&lt;/P&gt;
&lt;P&gt;FTS is well documented in the official Alfresco documentation and most tutorials I have seen in the last couple of years.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 08:42:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/lucene-search-using-a-variable/m-p/87171#M26296</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-10-05T08:42:01Z</dc:date>
    </item>
  </channel>
</rss>

