jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-8285) statistics the total number of documents return -1
Date Tue, 30 Apr 2019 07:25:00 GMT

     [ https://issues.apache.org/jira/browse/OAK-8285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

angela resolved OAK-8285.
-------------------------
    Resolution: Not A Bug

works as designed and documented at http://jackrabbit.apache.org/oak/docs/query/query-engine.html#Result_Size


> statistics the  total number of documents return -1
> ---------------------------------------------------
>
>                 Key: OAK-8285
>                 URL: https://issues.apache.org/jira/browse/OAK-8285
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, query
>    Affects Versions: 1.10.2
>            Reporter: zhouxu
>            Priority: Blocker
>
> We use oak1.10.2 inside a web application to store documents 
> How can we program statistics such as : 
> - the total number of documents 
> - compute the number of documents per property values for a given property ?
> we try these code,but it return -1
> QueryManager qm = session.getWorkspace().getQueryManager(); 
> Query q = qm.createQuery("SELECT * FROM [nt:file] WHERE LOCALNAME() LIKE '%.txt' and
[\"jcr:createdBy\"] = 'anonymous'", Query.JCR_SQL2); 
> QueryResult qr = q.execute(); 
> long stat = qr.getRows().getSize(); 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message