max_results parameter not working as expected on AutoIndex

Hello everybody,

We are having problems figuring out why the “max_results” parameter is not displaying the right number of items when specified.

For some reason it seems that Rhythmyx is taking into account the number of existing revisions for the items before displaying the results. So for example if you specify a maximum number of 10 items, only 2 o 3 will be displayed deppending on many revisions of those items do exist.

Any ideas or thoughts would be really welcome. We are on 6.7.

Thanks in advance, javier.

Javier,

Have you tried the same JCR query using the JCR debugger to see which results are being retrieved? Are the results the same?

Hi Riley, thanks for your response.

Yes I did test it, that is how I did work out it was counting the item revisions since on the query debugger its displaying items repeated as many times as revisions they have.

Thanks, J.

[QUOTE=Rileyw;20137]Javier,

Have you tried the same JCR query using the JCR debugger to see which results are being retrieved? Are the results the same?[/QUOTE]

This might help: http://forum.percussion.com/showthread.php?6093-Auto-Index-Query-Returning-All-Revisions&highlight=jcr+query+revisions

To get just the current revision of an item, select rx:sys_contentid and rx:sys_folderid in your autoslot query.