<div dir="ltr">Hi everyone, <div><br></div><div>I'm having a little problem to define the number of results, with Solr. </div><div>Every time I specify "rows=XXX", there is "rows=250" in my parsed query (according to logs)(XXX could be any number)</div>
<div>If I don't specify the number of rows, in logs, I have "rows=50". </div><div><br></div><div>Here is part of my code : </div><div><div> // Request to build</div><div> StringBuilder query = new StringBuilder();</div>
<div><br></div><div> // Defining requested types</div><div> query.append("fq=type:(typeAlpha OR typeBeta)");</div><div><br></div><div> // Defining rows limit</div><div> query.append("&rows=999999");</div>
<div><br></div><div> // Defining parent folder</div><div> query.append("&fq=parent-folders:(" + getCmsObject().getRequestContext().getSiteRoot() + area.getPath() + ".content/)");</div>
</div><div><br></div><div><div> // Let's search</div><div> CmsSearchManager searchManager = OpenCms.getSearchManager();</div><div> CmsSolrResultList results = null;</div><div> results = searchManager.getIndexSolr("Solr Online").search(cms, query.toString());</div>
</div><div><br></div><div>He is what I get in logs</div><div><div> [Solr Online] webapp=null path=/select params={q=*:*&fl=*,score&qt=edismax&rows=250&fq=type:(typeAlpha OR typeBeta)&fq=parent-folders:(/sites/default/bla/.content/)&start=0} hits=29 status=0 QTime=1</div>
</div><div><br></div><div><br></div><div>For the moment, I know I'm under the limit, but what would happen once I get 250+ results ? Would the limit grow up alone ? (would be fun ^^)</div><div><br></div><div>Thanks for help ! </div>
<div>Regards, </div><div>Le Nouveau</div><div><br></div></div>