How to do partial matching on searches with PostgreSQL as search backend?
I'm running wagtail 5.0 and I see the following statements in the documentation
The partial_match option has been deprecated. To index a field for partial matching, use AutocompleteField instead.
However in the autocomplete documentation it states
This method should only be used for real-time autocomplete and actual search requests should always use the search() method.
What is the issue with using the autocomplete method vs search? Functionally the autocomplete method gives me what i want.
>>> UtvalgPostPage.objects.all().live().search("alt")
<SearchResults [<UtvalgPostPage: Demo på alt vi har>]>
>>> UtvalgPostPage.objects.all().live().search("al")
<SearchResults []>
>>> UtvalgPostPage.objects.all().live().autocomplete("al")
<SearchResults [<UtvalgPostPage: Demo på alt vi har>]>