05-03-2018 12:21 PM
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.
05-04-2018 06:36 AM
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!
05-04-2018 08:47 AM
Beware if using ElasticSearch
05-04-2018 11:51 AM
Then, I recommend to you define a schema "transaction" (with prefix "transaction", i.e) in your document type with the metadata
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.