Skip to content

Instantly share code, notes, and snippets.

@bogsio
Created October 28, 2013 19:53
Show Gist options
  • Select an option

  • Save bogsio/7203455 to your computer and use it in GitHub Desktop.

Select an option

Save bogsio/7203455 to your computer and use it in GitHub Desktop.
def search(request):
"""
Search through the entries
"""
query = request.GET['q']
results = Post.search_manager.search(query)
return render_to_response('search_index.html',
{'results': results, 'query': query},
context_instance=RequestContext(request))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment