<?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 Search in WebScript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111650#M78525</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;SPAN&gt;I want create a web script that search all the nodes starting from a defined node optained from the args of the script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can retrieve the node, but I can't use its displayPath property in the lucene search. I saw that there's also a path property but its value is undefined.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;if ((args.rootId != null) &amp;amp;&amp;amp; (args.rootId != "")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.root = search.findNode("workspace://SpacesStore/" + args.rootId);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;model.root = roothome;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;var path = ???;&lt;BR /&gt;&lt;BR /&gt;var queryString = "PATH:\"//" + path + "//*\" AND (TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;" OR TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}folder\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}folder\&lt;/A&gt;")"; &lt;BR /&gt;&lt;BR /&gt;model.results = search.luceneSearch(queryString);&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Emanuela&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 11:09:02 GMT</pubDate>
    <dc:creator>emmy</dc:creator>
    <dc:date>2007-08-08T11:09:02Z</dc:date>
    <item>
      <title>Search in WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111650#M78525</link>
      <description>Hi, I want create a web script that search all the nodes starting from a defined node optained from the args of the script.I can retrieve the node, but I can't use its displayPath property in the lucene search. I saw that there's also a path property but its value is undefined.if ((args.rootId != nu</description>
      <pubDate>Wed, 08 Aug 2007 11:09:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111650#M78525</guid>
      <dc:creator>emmy</dc:creator>
      <dc:date>2007-08-08T11:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search in WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111651#M78526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you can't get the (qname) path of a node for use in lucene searches.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I failed to find a workaround, so I think we'll need to add a method to Javascript API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:53:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111651#M78526</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-08T13:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search in WebScript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111652#M78527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alternatively, there is a getQnamePath() available in freemarker.&amp;nbsp; So you could do the search there instead of javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:58:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-in-webscript/m-p/111652#M78527</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-08-08T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

