Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Hi Team,
As part of referenceSearch.search , we are passing resolver and path. but it is deprecated now. We have two more additional parameters, limit and offset. In this case, we want to know the number of assets to set the limit.
How to find the number of assets here?
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
I could see ReferenceSearch api has below methods -
setMaxReferencesPerPage(int maxReferencesPerPage) to set the value of maxReferencesPerPage.
You could see below implementation how did they set the value of max references per pages -
http://experience-aem.blogspot.com/2015/07/aem-61-get-references-of-page-or-asset.html
But in query builder we can easily use offset and limit.
Please brief us about the actual requirement here.
Vistas
Respuestas
Total de me gusta
Hi,
Did you try passing limit as -1 to return all the references?
Vistas
Respuestas
Total de me gusta
Hi Ravi_Pampana,
You mean like this? referenceSearch.search(resourceResolver, assetPath, 0, -1)
if we pass like this, will it get all the assets?
Vistas
Respuestas
Total de me gusta
I could see ReferenceSearch api has below methods -
setMaxReferencesPerPage(int maxReferencesPerPage) to set the value of maxReferencesPerPage.
You could see below implementation how did they set the value of max references per pages -
http://experience-aem.blogspot.com/2015/07/aem-61-get-references-of-page-or-asset.html
But in query builder we can easily use offset and limit.
Please brief us about the actual requirement here.
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas