[TYPO3-Solr] Random sorting

Jigal van Hemert jigal.van.hemert at typo3.org
Tue May 21 11:21:45 CEST 2013


Hi,

On 21-5-2013 10:55, Rik Willems wrote:
> I'd like to order my results at random. Now I see a fieldtype random in
> the Solr xml files but I have now clue how to use it. Anything I try in
> the setup gives me blank results. Can anyone point me in the right
> direction?

In the documentation of Dynamic Fields [1] you can find how to set up a 
random field.
After that it would be just a matter to use that field as sorting field [2].

Of course you need to re-index before the field can be used.

[1] http://forge.typo3.org/projects/extension-solr/wiki/Dynamic_Fields
[2] 
http://forge.typo3.org/projects/extension-solr/wiki/Tx_solrsearch#querysortBy

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-solr mailing list