Hi Fiz,

Does RandomSortField suit your needs?

https://solr.apache.org/docs/8_11_1/solr-core/org/apache/solr/schema/RandomSortField.html

Thomas

Op ma 11 apr. 2022 om 09:06 schreef Fiz N <fiznewy...@gmail.com>:

> Hi SOLR experts,
>
> In my current project, we have a requirement to select random set of data
> of N number of rows across result set (without sorted). I have already
> checked below options but these were not fruitful:
>
>
>
>    1. *Providing start parameter during the query*:
>
> Since we have millions of documents indexed in SOLR, hence this method is
> not useful with very high value of start parameter and its taken lot of
> memory and sometimes getting OOM as well.
>
>
>
>    1. *Using Cursor Mark parameter during query:*
>
> This method works well compare to start parameter but the catch is, it will
> first sort the result set based on sort logic we pass and then traverse
> through them. In my requirement we do not need sorting. We just need
> randomize doc selection across result set.
>
> So, can you please let me know if there is any capability present in SOLR
> to handle the requirement or any kind of plugin/3rd party trusted tool to
> perform the same.
>
>
>
> Thanks
>
> Fiz
>

Reply via email to