<?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 lucendSearch against properties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219088#M172218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to run a websript that has a luceneSearch in it.&amp;nbsp; Its pretty simple, it searches a single property that has been attached to images in the AVM as an aspect.&amp;nbsp; It keeps returning no results although the same query works fine in the nodebrowser lucene search.&amp;nbsp; I call it using url:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/image/search?s=test" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/image/search?s=test&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Firstly can I use the javascript lucene search to query AVM nodes with apects attached.&amp;nbsp; All the doco seems to point that its fine.&amp;nbsp; Secondly, have I got the lucene query string wrong?&amp;nbsp; All help really appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;// store and path provided as args &lt;BR /&gt;&lt;BR /&gt;if (args.s == null || args.s.length == 0) { &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.code = 400; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.message = "Store is a required argument."; &lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.redirect = true; &lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;var store = avm.lookupStore(args.s);&lt;BR /&gt;&lt;BR /&gt;if (store == null || store == undefined) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.code = 404;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.message = "Store " + args.s + " not found.";&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;status.redirect = true;&lt;BR /&gt;&lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[b]var avmResults = store.luceneSearch("@sim\:description:purple");&lt;BR /&gt;model.resultset = avmResults;&lt;BR /&gt;[/b]&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;/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;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>Mon, 19 Oct 2009 11:31:21 GMT</pubDate>
    <dc:creator>boneill</dc:creator>
    <dc:date>2009-10-19T11:31:21Z</dc:date>
    <item>
      <title>lucendSearch against properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219088#M172218</link>
      <description>Hi all,I am trying to run a websript that has a luceneSearch in it.&amp;nbsp; Its pretty simple, it searches a single property that has been attached to images in the AVM as an aspect.&amp;nbsp; It keeps returning no results although the same query works fine in the nodebrowser lucene search.&amp;nbsp; I call it using url:&amp;nbsp; h</description>
      <pubDate>Mon, 19 Oct 2009 11:31:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219088#M172218</guid>
      <dc:creator>boneill</dc:creator>
      <dc:date>2009-10-19T11:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: lucendSearch against properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219089#M172219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;DOH, figured it out.&amp;nbsp; I needed to escape my search string for lucene query in the JS.&amp;nbsp; ie "tim\\:mypropertyname&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;urple".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 03:53:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219089#M172219</guid>
      <dc:creator>boneill</dc:creator>
      <dc:date>2009-10-20T03:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: lucendSearch against properties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219090#M172220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You saved my day. Thank you for being came back and sharing your solution!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:24:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucendsearch-against-properties/m-p/219090#M172220</guid>
      <dc:creator>nreau</dc:creator>
      <dc:date>2009-10-20T09:24:19Z</dc:date>
    </item>
  </channel>
</rss>

