cancel
Showing results for 
Search instead for 
Did you mean: 

search document by directory and title

Uril_Yak
Champ on-the-rise
Champ on-the-rise

I am new to nuxeo. Is there possibilities to search document by directory and title. For example I have document "HelloWorld.doc" which is located inside "/default-domain/workspaces/Sample Content/PDF and Office Documents" . I can run rest api that giving me all documents inside "/default-domain/workspaces/Sample Content/PDF and Office Documents"

GET http://nuxeo/nuxeo/api/v1/search/lang/NXQL/execute?query=select * from Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/Sample Content/PDF and Office Documents'

But where I can specify document name, which in my case is "HelloWorld.doc". Example will be appreciated. Thank you in advance.

1 REPLY 1

Thomas_Roger
Star Contributor
Star Contributor
GET http://nuxeo/nuxeo/api/v1/search/lang/NXQL/execute?query=select * from Document WHERE ecm:path STARTSWITH '/default-domain/workspaces/Sample Content/PDF and Office Documents' AND file:content/name = 'HelloWorld.doc'

See https://doc.nuxeo.com/nxdoc/nxql/ for more information and examples about NXQL queries.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.