AnsweredAssumed Answered

Number of results from a search query not correct

Question asked by hbf on Nov 28, 2007
Latest reply on Jan 31, 2008 by kevinr
Dear list,

It seems that Lucene searches do not necessarily return all results but only the first few. How can I obtain all nodes that match a certain condition?

In my particular application, I am running a JavaScript server-side script containing

var nodes = search.luceneSearch('ASPECT:"{blabla}foo"');
logger.log("Found " + nodes.length + " nodes.");

Strangely, the same query returns different results:

Found 349 nodes.
Found 412 nodes.

What could be the reason for this?

Many thanks,
Kaspar

P.S. I am using r1262 SVN Alfresco.

Outcomes