cancel
Showing results for 
Search instead for 
Did you mean: 

search document by tag

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

I have updated my document, which is Test.pdf with the following metadata : transaction:date = "2050-12-25", transaction:time = "16:00:00", transaction:id = "aaaa-bbbb" Below the rest api:

PUT http://<NUXEO_SERVER>; /nuxeo/api/v1/path/default-domain/workspaces/License-Uril/Test.pdf

{ "entity-type": "document", "properties": { "nxtag:tags": [ { "label": ""transaction:date":"2050-12-25"", "username": "Administrator" }, { "label": ""transaction:time":"16:00:00"", "username": "Administrator" }, { "label": ""transaction:id":"aaaa-bbbb"", "username": "Administrator" } ]
/> } }

Is anyone know how to search my document(Test.pdf) by transaction:id tag which is equal "aaaa-bbbb"? Any help will be appreciated.

3 REPLIES 3

Victor_Sánchez
Confirmed Champ
Confirmed Champ

Hi,

you can use several service in Nuxeo to search. For example, with REST API endpoints or automation (${HOST}/nuxeo/site/automation/doc). Look for search into for REST API : https://doc.nuxeo.com/nxdoc/search-endpoints/

Look up here https://doc.nuxeo.com/nxdoc/nxql/ for ecm:tag use, with ecm:tag/* in NXQL language, and ready.

Hope it helps.

Regards, VS!

Beware if using ElasticSearch

Then, I recommend to you define a schema "transaction" (with prefix "transaction", i.e) in your document type with the metadata

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.