From 7f156c2c17135b06e612a6a7fb04a75495f65d5e Mon Sep 17 00:00:00 2001 From: stdpi Date: Sun, 26 May 2024 11:03:35 +0700 Subject: [PATCH] fix(search): improve search by adding seo_titles why dont they add it already, it built in and suppose to help search? --- blog/models.py | 1 + gallery/models.py | 1 + 2 files changed, 2 insertions(+) diff --git a/blog/models.py b/blog/models.py index 3d19605..40c77b1 100644 --- a/blog/models.py +++ b/blog/models.py @@ -28,6 +28,7 @@ class BlogPage(Page): search_fields = Page.search_fields + [ index.SearchField('intro'), index.SearchField('body'), + index.SearchField('seo_title') ] content_panels = Page.content_panels + [ diff --git a/gallery/models.py b/gallery/models.py index 8e2ba01..c4ac939 100644 --- a/gallery/models.py +++ b/gallery/models.py @@ -25,6 +25,7 @@ class Picture(Page): search_fields = Page.search_fields + [ index.SearchField('cap'), + index.SearchField('seo_title'), ] content_panels = Page.content_panels + [