cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Java SDK

Abdelrahman_Sa1
Confirmed Champ
Confirmed Champ

documents = repository.query("SELECT * FROM " + docType , "0", pageIndex, null, null, null, null); documents.getResultsCount(); if i inquire for Doc Type not fount in my nuxeo engine this is documents.getResultsCount() give me randoum number
/> please advice Thanks

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

Your question is not really clear: If I get is well, you're saying that the number of results is a random number when the document type is not set properly?

I would say to check if the document type exists before sending the query. Then, usually these kind of requests looks like SELECT * FROM Document WHERE ecm:mixinType != 'HiddenInNavigation' AND ecm:isProxy = 0 AND ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:primaryType='<my_custom_type> to avoid listing trashed documents or proxies.

Thx

Abdelrahman_Sa1
Confirmed Champ
Confirmed Champ

Thanks it worked successfully

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.