I started learning Django just recently, so please forgive me if this is too new a question for you.
I have a search function implemented in Django. I created a full text index in MySQL DB, and then I have a field in my, say, book model: search_keywordswhere I basically store all the words, including the title and contents of the book. Then my search function does something similar to this:
search_keyword = self.request.GET.get('keywords')
if search_keyword:
qs = qs.filter(keywords__search=search_keyword + '*')
But the above approach does not work, if my search query is "intro", where I know the word / term there, for example, "test.introduction" (if the term "just introduction", then it works fine).
Then when I try this instead:
qs = qs.filter(keywords__icontains=search_keyword)
he finds "test.introduction", etc.
, , . "__search" ? , "__contains" ( ), , "__search" Django? (, ? - ?