I am trying to integrate full text search for django 1.10 with postgres database.
I am following tutorial from
text = models.TextField(max_length=500)
ans = models.TextField(max_length=1500, blank=True)
text: what is best for me?
ans: this is best for you.
q = Question.objects.filter(text__search='for')
It is actually my mistake. For Full text search when Postgres creates index it by default ignore common words like 'the', 'for', 'are','is' etc. So If you try to search using this keywords you search query will return empty even if there are lots of sentences with these words. I did not know this. So I thought I misconfigured.