lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Random Field
Date Sat, 01 May 2010 14:37:54 GMT
On Sat, May 1, 2010 at 10:23 AM, Blargy <zmanods@hotmail.com> wrote:
> Can someone explain a useful case for the RandomSortField?

People sometimes have requirements to show different results to
everyone (essentially randomly shuffling matches per person).

-Yonik
Apache Lucene Eurocon 2010
18-21 May 2010 | Prague

> <!-- The "RandomSortField" is not used to store or search any
>         data.  You can declare fields of this type it in your schema
>         to generate pseudo-random orderings of your docs for sorting
>         purposes.  The ordering is generated based on the field name
>         and the version of the index, As long as the index version
>         remains unchanged, and the same field name is reused,
>         the ordering of the docs will be consistent.
>         If you want different psuedo-random orderings of documents,
>         for the same version of the index, use a dynamicField and
>         change the name
>     -->
>    <fieldType name="random" class="solr.RandomSortField" indexed="true" />

Mime
View raw message