cancel
Showing results for 
Search instead for 
Did you mean: 

search and maxItems : execution time

grummfy
Champ in-the-making
Champ in-the-making
Hello,

in a  webscript i do this :
for example :
mquery = my query like : PATH:"/app:company_home/cm:test/*/*" AND   @\{http\://www.grummfy.be/model/ged/1.0\}toSearch:'test"
mlimit = 10
skip = 1

   var def =
   {
      query: mquery,
      store: "workspace://SpacesStore",
      language: "lucene",
      sort: [{column: "@{http\://www.grummfy.be/model/ged/1.0\}stuff", ascending: false}],
      page: {maxItems: mlimit, skipCount: skip}
   };

   results = search.query(def);

but if i put maxItems to -1 or to 1000, the total result number return changed but the time to execute it didn't change….
Did you know any way to pass over this or the time of the search is something that can't be changed

thanks
1 REPLY 1

dgenard
Champ on-the-rise
Champ on-the-rise
Hi, you may override those properties

#
# Properties to limit resources spent on individual searches
#
# The maximum time spent pruning results
system.acl.maxPermissionCheckTimeMillis=10000
# The maximum number of results to perform permission checks against
system.acl.maxPermissionChecks=1000
Copy them to alfresco-global.properties and change default values.
Hope this will help.

Denis