I use filter icons to search for words, but I want it to match whole words. for example, if I were looking for a liver, I would not want it to come back.
my request is as follows
MyModel.objects.filter(title__icontains=search_word)
I saw the __search filter, but this does not return results with 3 characters or less, and the site I'm building contains many of them that could be searched, for example. "BBC
I don't have access to db, but if someone knows how I can disable this in the code, then I would be happy to switch to using this as an alternative.
django django-queryset
John
source share