resultFetchSize Vs p.limit - Jackrabbit search | Community
Skip to main content
vkeerthy
Level 3
October 16, 2015
Solved

resultFetchSize Vs p.limit - Jackrabbit search

  • October 16, 2015
  • 1 reply
  • 923 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mshaji
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.  

1 reply

MshajiCommunity AdvisorAccepted solution
Community Advisor
October 16, 2015
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.