cancel
Showing results for 
Search instead for 
Did you mean: 

Use of PATH in fts query by rest api

Not applicable

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

1 ACCEPTED ANSWER

angelborroy
Community Manager Community Manager
Community Manager
2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

You may use the ANCESTOR reserved word.

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

Hyland Developer Evangelist

Thank you!

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