diff --git a/utils/search/backends/solr9pysolr.py b/utils/search/backends/solr9pysolr.py index 54c195852..7b23f7a94 100644 --- a/utils/search/backends/solr9pysolr.py +++ b/utils/search/backends/solr9pysolr.py @@ -81,6 +81,8 @@ def search_process_filter(self, query_filter, only_sounds_within_ids=False, only # Add type suffix to human-readable audio analyzer descriptor names which is needed for solr dynamic fields query_filter = solr555pysolr.add_solr_suffix_to_dynamic_fieldnames_in_filter(query_filter) + # When filtering by the created field, use the `created_range` DateRangeType field instead + # which include the ability to filter on exact values and ranges of values. if 'created:' in query_filter: query_filter = query_filter.replace('created:', 'created_range:') diff --git a/utils/search/solr9.0.0/cores/freesound/schema.xml b/utils/search/solr9.0.0/cores/freesound/schema.xml index 4183bb83f..77c876c8c 100644 --- a/utils/search/solr9.0.0/cores/freesound/schema.xml +++ b/utils/search/solr9.0.0/cores/freesound/schema.xml @@ -1,5 +1,4 @@ - id @@ -133,15 +132,7 @@ - - - - - - - - - + @@ -154,89 +145,41 @@ - - - - - - - - - - - + + + + + + + + + - + - - - - + + + + + + + - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -