Stop saving queries
These are only needed for prompted searches
This commit is contained in:
parent
138773997c
commit
bc87524394
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@ from django.views.decorators.http import require_GET
|
||||||
from wagtail.contrib.routable_page.models import RoutablePageMixin, route
|
from wagtail.contrib.routable_page.models import RoutablePageMixin, route
|
||||||
from wagtail.models import Page
|
from wagtail.models import Page
|
||||||
from wagtail.query import PageQuerySet
|
from wagtail.query import PageQuerySet
|
||||||
from wagtail.search.models import Query
|
|
||||||
from wagtail.search.utils import parse_query_string
|
from wagtail.search.utils import parse_query_string
|
||||||
|
|
||||||
from website.common.models import BaseContentMixin, BasePage
|
from website.common.models import BaseContentMixin, BasePage
|
||||||
|
@ -69,7 +68,6 @@ class SearchPage(BaseContentMixin, RoutablePageMixin, BasePage): # type: ignore
|
||||||
}
|
}
|
||||||
|
|
||||||
filters, query = parse_query_string(search_query)
|
filters, query = parse_query_string(search_query)
|
||||||
Query.get(search_query).add_hit()
|
|
||||||
pages = Page.objects.live().not_type(self.__class__, HomePage).search(query)
|
pages = Page.objects.live().not_type(self.__class__, HomePage).search(query)
|
||||||
|
|
||||||
paginator = Paginator(pages, self.PAGE_SIZE)
|
paginator = Paginator(pages, self.PAGE_SIZE)
|
||||||
|
|
Loading…
Reference in a new issue