From 35fffc46a481e1ed32e93651769bfae72bf96fde Mon Sep 17 00:00:00 2001 From: James Biggs Date: Thu, 4 May 2023 13:33:08 +0100 Subject: [PATCH] Re-added `SearchField` as per docs --- src/wagtailmedia/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wagtailmedia/models.py b/src/wagtailmedia/models.py index 3ece932..76256d6 100644 --- a/src/wagtailmedia/models.py +++ b/src/wagtailmedia/models.py @@ -67,11 +67,13 @@ class AbstractMedia(CollectionMember, index.Indexed, models.Model): objects = MediaQuerySet.as_manager() search_fields = CollectionMember.search_fields + [ + index.SearchField("title", boost=10), index.AutocompleteField("title", boost=10), index.FilterField("title"), index.RelatedFields( "tags", [ + index.SearchField("name", boost=10), index.AutocompleteField("name", boost=10), ], ),