<?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 Simple Searching in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98852#M68210</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do some simple searching and I am having a hard time trying to figure out how…..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing a simple search the works for a jpg in my repository:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "@\\{http\\://&lt;A href="http://www.alfresco.org/model/content/1.0\\}name:myimage.jpg" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\\}name:myimage.jpg&lt;/A&gt;");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;this works fine but if I have mutliple "myimage.jpg" i assume it would return all references to them.&amp;nbsp; So, I would like to have a search that takes into account the space it resides in (which I know from my code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My latest "Version" of trying to do this was:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/{&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}dictionary/{http://www.alfresco.org/model/content/1.0}Images/{http://www.alfresco.org/model/content/1.0}myImage.jpg\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}dictionary/{http://www.alfresco.org/model/content/1.0}Images/{http://www.alfresco.org/model/content/1.0}myImage.jpg\&lt;/A&gt;"");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This returns some sort of node but not the node for the image.&amp;nbsp; What would this return?&amp;nbsp; This is the path I got to the image from the Node Browser.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I get the following properties for the node that is returned (much different when I just do the name search)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;row 0: {&lt;A href="http://www.alfresco.org/model/system/1.0}store-protocol" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}store-protocol&lt;/A&gt; = workspace&lt;BR /&gt;row 0: {&lt;A href="http://www.alfresco.org/model/content/1.0}name" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}name&lt;/A&gt; = 7a9faf28-f345-11db-ab71-7fa60afd44de&lt;BR /&gt;row 0: {&lt;A href="http://www.alfresco.org/model/system/1.0}node-dbid" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}node-dbid&lt;/A&gt; = 12&lt;BR /&gt;row 0: {&lt;A href="http://www.alfresco.org/model/system/1.0}store-identifier" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}store-identifier&lt;/A&gt; = SpacesStore&lt;BR /&gt;row 0: {&lt;A href="http://www.alfresco.org/model/system/1.0}node-uuid" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}node-uuid&lt;/A&gt; = 7a9faf28-f345-11db-ab71-7fa60afd44de&lt;BR /&gt;row 0: {&lt;A href="http://www.alfresco.org/model/content/1.0}path" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}path&lt;/A&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;BR /&gt;&lt;SPAN&gt;Do I have the wrong approach here?&amp;nbsp; If I know the exact path to the image, how do I get it?&amp;nbsp; I have spent HOURS pouring through the documentation and trying different search strings and still can't get it to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much….&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 01:40:52 GMT</pubDate>
    <dc:creator>nyronian</dc:creator>
    <dc:date>2007-05-10T01:40:52Z</dc:date>
    <item>
      <title>Simple Searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98852#M68210</link>
      <description>I am trying to do some simple searching and I am having a hard time trying to figure out how…..I am doing a simple search the works for a jpg in my repository:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Query query = new Query(Constants.QUERY_LANG_LUCENE, "@\\{http\\://www.alfresco.org/model/content/1.0\\}name:myimage.jpg");‍‍‍this</description>
      <pubDate>Thu, 10 May 2007 01:40:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98852#M68210</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-05-10T01:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98853#M68211</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;PATH uses prefixes not full uris (as XPATH does).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should solve your issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 11:29:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98853#M68211</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-05-10T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98854#M68212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;The PATH specifies the path to search in and it also is not escaped correctly (the '/' character in the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer"&gt;http://&lt;/A&gt;&lt;SPAN&gt; part needs escaping for instance - as you did in your original query attempt). You can use the short qname form to make it easier with less escaping, and then you'll want something like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/app:dictionary/cm:Images/*\" AND @\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}name:myimage.jpg" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}name:myimage.jpg&lt;/A&gt;");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 11:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98854#M68212</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-05-10T11:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Searching</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98855#M68213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much…it worked perfectly!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 16:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/simple-searching/m-p/98855#M68213</guid>
      <dc:creator>nyronian</dc:creator>
      <dc:date>2007-05-10T16:34:13Z</dc:date>
    </item>
  </channel>
</rss>

