From 88d96622b95f5091ee89a3bf5f2351b127024b4e Mon Sep 17 00:00:00 2001 From: PouyaMohseni Date: Sun, 21 Dec 2025 11:55:10 -0500 Subject: [PATCH] fix: avoid errors by using edismax for Solr contextual queries resolves #413 --- web-app/django/VIM/apps/instruments/views/instrument_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/web-app/django/VIM/apps/instruments/views/instrument_list.py b/web-app/django/VIM/apps/instruments/views/instrument_list.py index b3012a90..16c14b18 100644 --- a/web-app/django/VIM/apps/instruments/views/instrument_list.py +++ b/web-app/django/VIM/apps/instruments/views/instrument_list.py @@ -237,6 +237,7 @@ def _build_solr_query(self, language: Language, include_facets: bool = False): params = { "q": main_query, + "defType": "edismax", "wt": "json", "facet": "true" if include_facets else "false", "fl": f"sid, {name_field}, {umil_label_field}, hornbostel_sachs_class_s, mimo_class_s, thumbnail_url",