[opencms-dev] v8.list displays only 50 results, collecor ignores rows parameter

Carlos Merino carlos.merino at uva.es
Wed May 29 10:30:07 CEST 2013


Hello,
     there is a bug in the core opencms class: 
org.opencms.search.solr.CmsSolrIndex

     you can finde this code and delete or comment rows=ROWS_MAX or 
change the if clause conditions

  // Initialize rows, offset, end and the current page.
             int rows = query.getRows() != null ? 
query.getRows().intValue() : CmsSolrQuery.DEFAULT_ROWS.intValue();
             if (!ignoreMaxRows && (rows > ROWS_MAX)) {
                 //rows = ROWS_MAX;
             }

best regards
Carlos

El 29/05/13 09:21, Jakub Jec(mínek escribió:
> Hello,
> we are using on our site v8.list for displaying all news for certain 
> year. For this we are using collector byQuery. It works well but it 
> seems to display only 50 results no matter what I set in the rows 
> parameter.
> The complete parameter(query) looks like this:
> fq=type:v8pressreleases&fq=parent-folders:(/shared/.content/press-releases/ 
> OR %(request.siteroot)%(link1))&fq=collector.date_prop:[1136070001000 
> TO 1167605999000]&sort=collector.priority_prop desc, 
> collector.date_prop desc&rows=100|createPath=%(link1).html
>
> I don't know why the rows parameter is ignored.
> Has anybody experienced this issue?
> I'll be grateful for any advice.
> Thanks.
>
> Jakub Jec(mínek
> ------------------------------------------------
> NELASOFT Technologies, s.r.o.
> Mob: +420 604 575 772
> E-mail: jakub.jecminek at nelasoft.cz <mailto:jakub.jecminek at nelasoft.cz>
> Web: www.nelasoft.cz <http://www.nelasoft.cz>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130529/627575c8/attachment.htm>


More information about the opencms-dev mailing list