jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiaojie Shen <Xiaojie.S...@cybercomgroup.com>
Subject How to limit webdav xpath search result
Date Wed, 25 Aug 2010 16:47:21 GMT
Hi all

I'm using xpath query for webdav search on Jackrabbit server as below.
String query = "//element(*, nt:file)[@jcr:content/D:as-createdby='aaa'] order by @jcr:content/D:as-lastmodified
ascending";
SearchMethod searchMethod = new SearchMethod(uri, query, "xpath");
client.executeMethod(searchMethod);

Log didn't show any error.
25.08.2010 11:09:43 *DEBUG* QueryResultImpl: getResults(2147483647) limit=-1 (QueryResultImpl.java,
line 274)
25.08.2010 11:09:44 *DEBUG* SortedLuceneQueryHits: getHits() 26648/32768 (SortedLuceneQueryHits.java,
line 165)
25.08.2010 11:09:44 *DEBUG* QueryResultImpl: query executed in 578 ms (341) (QueryResultImpl.java,
line 296)
25.08.2010 11:12:32 *DEBUG* QueryResultImpl: retrieved ScoreNodes in 167983 ms (22916) (QueryResultImpl.java,
line 312)

But SearchMethod failed with error 500 Internal Server Error because of java.lang.OutOfMemoryError:
Java heap space. My guess is that Jackrabbit cannot handle so many query results. Is there
some way to limit the query result? JCR query provides setLimit(), but what/how shall be used
for a webdav query?

Thanks in advance!
Shen


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message