Use of PATH in fts query by rest api

cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Former Member

Use of PATH in fts query by rest api

Jump to solution

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 Solution

Accepted Solutions
angelborroy
Alfresco Employee

Re: Use of PATH in fts query by rest api

Jump to solution
2 Replies
angelborroy
Alfresco Employee

Re: Use of PATH in fts query by rest api

Jump to solution

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
Anonymous
Former Member

Re: Use of PATH in fts query by rest api

Jump to solution

Thank you!

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