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

@@ -61,6 +61,9 @@
<!-- Single string for exact matching and faceting -->
<fieldType name="string_facet" class="solr.StrField" sortMissingLast="true" docValues="true"/>
<!-- Random sort field type for random ordering -->
<fieldType name="random" class="solr.RandomSortField" indexed="true"/>
<!-- Fields -->
<!-- Required Fields -->
@@ -129,6 +132,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>