[opencms-dev] SolrCollector limited to 50 rows
Rüdiger Kurz
r.kurz at alkacon.com
Tue Jun 4 11:54:21 CEST 2013
Hi,
my previous mail:
http://lists.opencms.org/pipermail/opencms-dev/2013q2/038332.html should
answer this thread.
regards
Rüdiger
Am 14.05.2013 11:15, schrieb Sandrine Prousteau:
> Hi
>
> I was embarrassed by the same issue.
> I got around with it by using my custom function :
> private CmsSolrResultList getSearchCustom(String queryInString, CmsSolrIndex index) {
>
> Search for this in the API classes, and comment it in your code :
> // Initialize rows, offset, end and the current page.
> int rows = query.getRows() != null ? query.getRows().intValue() : CmsSolrQuery.DEFAULT_ROWS.intValue();
> if (!ignoreMaxRows && (rows > 50)) {
> rows = 50;
> }
>
> Sandrine
>
> -----Message d'origine-----
> De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de fhsubscriptions at componio.net
> Envoyé : mercredi 8 mai 2013 16:58
> À : The OpenCms mailing list
> Objet : [opencms-dev] SolrCollector limited to 50 rows
>
> Hi,
>
> why does the SolrCollector only deliver 50 rows no matter how many rows I select in the query. I have found the constant rows_max set to 50 in the CmsSolrIndex which can be overridden if used programatically but I see no way to do this with the collector. The attribute pagesize does not influence this behaviour either. Is this by design?
>
> Regards,
>
> \Fabian
--
Rüdiger Kurz
-------------------
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com
http://www.opencms.org
Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613
More information about the opencms-dev
mailing list