<?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 Re: Search API and relativePath in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107247#M30213</link>
    <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;
&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "PATH:'/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/cm:Agency_x0020_Files//*' OR PATH:'/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/cm:Budget_x0020_Files//*'"
  }
}&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Apr 2020 13:37:44 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2020-04-01T13:37:44Z</dc:date>
    <item>
      <title>Search API and relativePath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107244#M30210</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i'm looking for possibility how to use relativePath in Search API. I'm using this command&lt;/P&gt;&lt;PRE&gt;POST /alfresco/api/-default-/public/search/versions/1/search&lt;/PRE&gt;&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "=ssl:path:'mailroom/Unfinished'"
  },
  "paging": {
    "maxItems": 100,
    "skipCount": 0
  }
}&lt;/PRE&gt;&lt;P&gt;and i need to use relativePath in it. Why? It is not important, but i'm looking for how to for example get children from two different folders (and different sites) and use custom property search in the query. In the future i would like to filter results by my custom metadata.&lt;/P&gt;&lt;P&gt;Thanks fo help!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 19:28:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107244#M30210</guid>
      <dc:creator>pdovhomilja</dc:creator>
      <dc:date>2020-03-31T19:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and relativePath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107245#M30211</link>
      <description>&lt;P&gt;Not sure if I understand your requirement.&lt;/P&gt;
&lt;P&gt;You can try queries like the following to find every node in the system under a folder named &lt;STRONG&gt;test&lt;/STRONG&gt;.&lt;/P&gt;
&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "PATH:'//*/cm:test/*'"
  }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:35:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107245#M30211</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-04-01T11:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and relativePath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107246#M30212</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks this works, but i need to search everything with "relativePath" = "&lt;SPAN&gt;/Sites/Storage/documentLibrary/Documents". It is possible with PATH?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And can be used something like this with searching in more paths?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "relativePath:'/Sites/Storage/documentLibrary/Documents' OR relativePath:'/Sites/Archive/documentLibrary/Files'"
  }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 11:55:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107246#M30212</guid>
      <dc:creator>pdovhomilja</dc:creator>
      <dc:date>2020-04-01T11:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and relativePath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107247#M30213</link>
      <description>&lt;P&gt;Do you mean something like this?&lt;/P&gt;
&lt;PRE&gt;{
  "query": {
    "language": "afts",
    "query": "PATH:'/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/cm:Agency_x0020_Files//*' OR PATH:'/app:company_home/st:sites/cm:swsdp/cm:documentLibrary/cm:Budget_x0020_Files//*'"
  }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:37:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107247#M30213</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-04-01T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search API and relativePath</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107248#M30214</link>
      <description>&lt;P&gt;Exactly! THANK YOU VERY MUCH!!!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 14:11:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-api-and-relativepath/m-p/107248#M30214</guid>
      <dc:creator>pdovhomilja</dc:creator>
      <dc:date>2020-04-01T14:11:56Z</dc:date>
    </item>
  </channel>
</rss>

