Skip to content

SearchForm.get_suggestion() is broken #2013

@gwaidacher

Description

@gwaidacher

Oscar: 4.0.0
Haystack: 3.3.0
Solr: 8.11.4

In Oscar's BaseSearchView, form.get_suggestion() now returns None:

example: search: "bloos"

self.queryset.count(): 0

form.get_suggestion(): None

return self.searchqueryset.spelling_suggestion(self.cleaned_data["q"])

without passing the search term, it works:

BaseSearchView.get_context_data():

suggestion = self.queryset.spelling_suggestion()

Please have a look, maybe it's related to a newer Solr Version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions