Use of PATH in fts query by rest api

cancel
Showing results for 
Search instead for 
Did you mean: 
federicotaranti
Member II

Use of PATH in fts query by rest api

Hi,

I'm using the rest api to search deeply in a folder. I have the noderef of this folder, but the "getNode" (GET /nodes/{nodeId}) in rest api doesn't return the xpath, useful to build an fts query like "+PATH:'...//*' AND ...."

How can i search in a subtree with an fts query if I only know the noderef?

Regards

Federico

2 Replies
angelborroy
Alfresco Employee

Re: Use of PATH in fts query by rest api

You may use the ANCESTOR reserved word.

https://hub.alfresco.com/t5/alfresco-content-services-blog/using-the-rest-api-to-find-elements-insid...

Software Engineer in Alfresco Search Team.
federicotaranti
Member II

Re: Use of PATH in fts query by rest api

Thank you!

ANCESTOR keyword is not documented in FTS docs: https://docs.alfresco.com/search-services/latest/using/#search-in-fields