I am not sure I get the question, but can't you add a check in the
search-API layer that says:

int maxAllowedRows = 50;
if (rows > maxAllowedRows){
rows = maxAllowedRows
}

Cheers
--------------------------
*Alessandro Benedetti*
Director @ Sease Ltd.
*Apache Lucene/Solr Committer*
*Apache Solr PMC Member*

e-mail: a.benede...@sease.io


*Sease* - Information Retrieval Applied
Consulting | Training | Open Source

Website: Sease.io <http://sease.io/>
LinkedIn <https://linkedin.com/company/sease-ltd> | Twitter
<https://twitter.com/seaseltd> | Youtube
<https://www.youtube.com/channel/UCDx86ZKLYNpI3gzMercM7BQ> | Github
<https://github.com/seaseltd>


On Tue, 30 Jan 2024 at 10:58, ufuk yılmaz <uyil...@vivaldi.net.invalid>
wrote:

> Hi Anuj, I believe this could work:
>
>
> https://solr.apache.org/guide/solr/latest/configuration-guide/requesthandlers-searchcomponents.html#invariants
>
> Regards
>
> -ufuk yilmaz
>
> —
>
> > On 30 Jan 2024, at 13:39, Anuj Bhargava <anujb...@gmail.com> wrote:
> >
> > Need to show limited rows, even if someone specifies more rows.
> >
> > http://xxx.xx.xx.xx:8983/solr/regions/select?q=*:*&start=0&*rows=100*
> >
> > In the above a person can specify any number of rows and can download all
> > the records. Anyway to restrict the search result to say 50
> >
> > Regards,
> >
> > Anuj
>

Reply via email to