AnsweredAssumed Answered

Restrict search to a specific site using REST API

Question asked by vezance on Sep 11, 2017
Latest reply on Sep 13, 2017 by vezance

We are using Alfresco CE 5.2. Using the REST API for Search, we want to restrict the search to a particular site only. Going through the Search API details on the API explorer page, we did not find any details on how to restrict search to one site. 

 

We also tried the following solution provided by someone else:

{
"query": {
"language": "afts",
"query": "=PARENT:<node ID> AND =name:'<search query>'"
}
}

However, this did not return any results for us. 

 

Is there a way to use the REST API to search within a specific site or folder?

Outcomes