lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: implementing a random result request handler - solr 1.2
Date Mon, 07 Jul 2008 17:48:00 GMT
On Mon, Jul 7, 2008 at 1:40 PM, Sean Laval <> wrote:
> The RandomSortField in 1.3.... each time you then issue a query, you get the
> same random sort order right? That is to say the randomness is implemented
> at index time rather than search time?

See the comment in the example schema:

    <!-- The "RandomSortField" is not used to store or search any
         data.  You can declare fields of this type it in your schema
         to generate psuedo-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 differend 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" />


View raw message