title: Django restframework search function doesn't return the desired output?
body: <p>I want to use Django search feature while trying to implement it. The implemented code doesn't work</p>
  <p>View.py file</p>
  <pre><code>class SearchView(generics.ListAPIView):
      permission_classes = [IsAuthenticated]
      queryset = BlogDetails.objects.all()
      search_fields = [&quot;blog_title&quot;]
      filter_backend = [filters.SearchFilter]
      serializer_class = SearchSerializer
  </code></pre>
  <p>Serializer.py</p>
  <pre><code>class SearchSerializer(serializers.ModelSerializer):
      class Meta:
          model = BlogDetails
          fields = (&quot;blog_title&quot;,&quot;blog_author&quot;)
  </code></pre>
  <p>So I made a request like this</p>
  <pre><code>localhost:8000/search/search-blog/?search=jane
  </code></pre>
  <p>The Database I use is PostgreSQL</p>
  <p>But it displays all the blogs that are in database and not the result which has jane in its title and I have added <code>django-filters</code> in <code>INSTALLED_APPS</code> But still it doesn't work!</p>