solr random fix

This commit is contained in:
Stefan Hardegger
2025-09-26 15:05:27 +02:00
parent 574f20bfd7
commit 74cdd5dc57
4 changed files with 98 additions and 33 deletions

View File

@@ -55,6 +55,9 @@
<!-- Multi-valued string for URLs -->
<fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true"/>
<!-- Random sort field type for random ordering -->
<fieldType name="random" class="solr.RandomSortField" indexed="true"/>
<!-- Fields -->
<!-- Required Fields -->
@@ -90,6 +93,11 @@
<!-- Default Search Field -->
<!-- Dynamic Fields -->
<!-- Random sort dynamic field for generating random orderings -->
<dynamicField name="random_*" type="random" indexed="true" stored="false"/>
<!-- UniqueKey -->
<uniqueKey>id</uniqueKey>