<?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 Use search.luceneSearch to search for files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-search-lucenesearch-to-search-for-files/m-p/231828#M184958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with Enterprise edition 3.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working with webscript examples. I got a webscript example(&lt;/SPAN&gt;&lt;SPAN style="color:#FF4000;"&gt;whitepaper&lt;/SPAN&gt;&lt;SPAN&gt;) at the following link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf" rel="nofollow noopener noreferrer"&gt;http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a space named Someco under company_home. I have some files under that folder. Now i want to search for these files by their name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using this syntax:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var query = "PATH:\"/app:company_home"&lt;BR /&gt;+"/cm:"+search.ISO9075Encode("Someco")&lt;BR /&gt;+"//*\" +TEXT:\"whitepaper\" ";&lt;BR /&gt;var whitepapers =search.luceneSearch(query);&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Is this correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i execute the webscript, i get a long list of errors..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any kind of suggestions are welcome..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 14:02:53 GMT</pubDate>
    <dc:creator>yogesh_prabhu</dc:creator>
    <dc:date>2010-05-24T14:02:53Z</dc:date>
    <item>
      <title>Use search.luceneSearch to search for files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-search-lucenesearch-to-search-for-files/m-p/231828#M184958</link>
      <description>Hi,I am working with Enterprise edition 3.1I am working with webscript examples. I got a webscript example(whitepaper) at the following link:http://ecmarchitect.com/images/articles/alfresco-webscripts/web-script-article.pdfI have a space named Someco under company_home. I have some files under that</description>
      <pubDate>Mon, 24 May 2010 14:02:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-search-lucenesearch-to-search-for-files/m-p/231828#M184958</guid>
      <dc:creator>yogesh_prabhu</dc:creator>
      <dc:date>2010-05-24T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Use search.luceneSearch to search for files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-search-lucenesearch-to-search-for-files/m-p/231829#M184959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;use this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var SomeCoNode = companyhome.childByNamePath("Someco"); &lt;BR /&gt;currpath = SomeCoNode.qnamePath;&lt;BR /&gt;var query = "PATH:\"" + currpath + "//*\";&lt;BR /&gt;var whitepapers =search.luceneSearch(query);&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;hope this will resolve ur problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amarendra Thakur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 May 2010 12:09:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-search-lucenesearch-to-search-for-files/m-p/231829#M184959</guid>
      <dc:creator>amarendra_thaku</dc:creator>
      <dc:date>2010-05-31T12:09:10Z</dc:date>
    </item>
  </channel>
</rss>

