Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

resultFetchSize Vs p.limit - Jackrabbit search

Avatar

Level 3

Can anyone help me on the definition of resultFtechSize [1] Vs p.limit (in JCR query builder)

I am trying to get maximum 100 hits from each query hence I thought p.limit should be set to 100. However I am not sure what the value should be for resultFetchSize. Should it be higher or lower or doesn't have influence on query results?

Explanation on this is much appreciated.

[1] http://wiki.apache.org/jackrabbit/Search

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
If the result set of a jcr query is large, then the loading the complete set and checking ACLs on them is quite expensive.
To remedy this, limit the fetch size to low value

By default, the query builder json servlet displays 10 hits. Adding the parameter of p.limit=-1allows the servlet to show the entire query result

p.limit impacts only the # of results returned at a time.  

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor
If the result set of a jcr query is large, then the loading the complete set and checking ACLs on them is quite expensive.
To remedy this, limit the fetch size to low value

By default, the query builder json servlet displays 10 hits. Adding the parameter of p.limit=-1allows the servlet to show the entire query result

p.limit impacts only the # of results returned at a time.