[opencms-dev] Solr and limited rows

Matthias Griselle mgriselle at gmail.com
Thu Oct 3 17:13:49 CEST 2013


I found the answer :
http://opencms.996256.n3.nabble.com/Solr-and-limited-rows-td23611.html


2013/10/3 Matthias Griselle <mgriselle at gmail.com>

> Hi all,
>
> When I'm requesting some Solr query, the row limit does not match what I
> want.
> If I do not precise any limit, by default it's 50. (it is normal)
> When I precise any range in my query, the value is always 250. I can ask
> something higher or lower, I always have 250.
> My aim is to get (almost) no limit.
>
> Do you have any idea ?
>
>
> My call in java :
> CmsSearchManager searchManager = OpenCms.getSearchManager();
> CmsSolrResultList results = null;
> results = searchManager.getIndexSolr("Solr Online").search(cms,
> query.toString());
>
> The value of query :
> fq=type:(article OR articlebox OR service OR servicebox OR widget OR
> rssreader OR
> boxflexible)&rows=100&fq=parent-folders:(/sites/default/test-beta/)
>
> What I get in logs :
> [Solr Online] webapp=null path=/select
> params={q=*:*&fl=*,score&qt=edismax&rows=250&fq=type:(article OR articlebox
> OR service OR servicebox OR widget OR rssreader OR
> boxflexible)&fq=parent-folders:(/sites/default/test-beta/)&start=0} hits=3
> status=0 QTime=111
>
> Thanks for help.
>
> Regards,
> Matthias Griselle
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20131003/54df3a92/attachment.htm>


More information about the opencms-dev mailing list