title: Python highlight searchValue in textfield
body: <p>I was following <a href="https://medium.com/@pauloxnet/full-text-search-in-django-with-postgresql-4e3584dee4ae" rel="nofollow noreferrer">this guide</a>, about django search.</p>
  
  <pre><code>search_value = request.query_params['searchvalue']
  
  documents = Document.objects.filter(
      raw_text__icontains=search_value
  ).values_list('doc_id', flat=True)
  
  return documents
  </code></pre>
  
  <p>This gets a list of document id's based on a search value. But in some of the document objects the raw_text textfield include the search_value more than once. But I still only get the doc_id once.</p>
  
  <p>Is there a way to get the doc_id for every hit in the filter? </p>