<?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 Retrieve document based on custom property in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297893#M251023</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 writing a webscript that retrieves a document based on the custom property "shortLink". I am using the code given below to retrieve the node &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var searchQuery = "@vmr\\:shortLink:\"" + documentShortLink + "\"";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // perform search&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nodes = search.luceneSearch(searchQuery);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is unable to find the node. However, I was able to retrieve it by searching for "vmr:shortLink:e91bf03f-328e-457e-a21f-45b4049cc619" on Alfresco Share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Alfresco and hence maybe missing something very trivial. Please guide me on where I could have gone wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepa&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 09:35:09 GMT</pubDate>
    <dc:creator>deepacp</dc:creator>
    <dc:date>2014-08-28T09:35:09Z</dc:date>
    <item>
      <title>Retrieve document based on custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297893#M251023</link>
      <description>Hi,I am writing a webscript that retrieves a document based on the custom property "shortLink". I am using the code given below to retrieve the node &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var searchQuery = "@vmr\\:shortLink:\"" + documentShortLink + "\"";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // perform search&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var nodes = search.luceneSearch(searchQuery);It i</description>
      <pubDate>Thu, 28 Aug 2014 09:35:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297893#M251023</guid>
      <dc:creator>deepacp</dc:creator>
      <dc:date>2014-08-28T09:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve document based on custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297894#M251024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tested your query using nodebrowser?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you get any error messsage on the logs when you run you query?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297894#M251024</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2014-08-28T15:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve document based on custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297895#M251025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks! I tried with Node Browser too and it gives me the document. I didn't find any error messages in the logs. It just returns a null value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried implementing the same using Java backed webscripts and it worked fine. I still don't understand why it fails from javascript.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 12:50:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297895#M251025</guid>
      <dc:creator>deepacp</dc:creator>
      <dc:date>2014-09-02T12:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve document based on custom property</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297896#M251026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried to encode it using ISO9075-encoded format ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var searchQuery = "@vmr\\:shortLink:\"" + documentShortLink + "\"";&lt;BR /&gt;var encodedString = search.ISO9075Encode(searchQuery);&lt;BR /&gt;var nodes = search.luceneSearch(searchQuery);&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 01:31:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrieve-document-based-on-custom-property/m-p/297896#M251026</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-09-03T01:31:17Z</dc:date>
    </item>
  </channel>
</rss>

