cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Lucene search results number

grob
Champ in-the-making
Champ in-the-making
Hello!
I have a strange problem with lucene search. Everytime I execute a "search string" I get diffrent results number.
First run: 956
Second run: 1045
Third: 921
4th: 1237

It doen't matter if run lucene search in a web script or in the Alfresco Node Browser.

Any idea what could be wrong?

My search string: PATH:"/app:company_home/cm:Repository//*" AND -PATH:"//cm:content_status/cm:draft/member" AND TYPE:"cm:content" AND PATH:"/cm:categoryRoot/cm:generalclassifiable/cm:Register/cm:Tag1//*"    

thnx in advace!
3 REPLIES 3

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

There is a timeout during the evaluation of permissions of matching nodes. The permission evaluations stops and only already checked nodes are returned by the whole search mechanism. What you experienced is probably a side effect of that timer.

grob
Champ in-the-making
Champ in-the-making
Hello, thanks for answering!
I tried to set system.acl.maxPermissionCheckTimeMillis from 1000ms to 20000ms. When the value was 1000ms I got less results, about 1/10 of the ususal number. In range 5000 to 20000ms the result number was the same as before, still different for every search execution.


system.acl.maxPermissionCheckTimeMillis=20000
system.acl.maxPermissionChecks=2000

grob
Champ in-the-making
Champ in-the-making
I apologize,was too fast Smiley Happy Changing system.acl.maxPermissionCheckTimeMillis value to 50000 solved the problem. Thnx again!