I have one model in my django application for which I want to create a search form. Is there a way to simultaneously search for all fields in a model with the same search string? I looked at xapian and solr, but they seem to have a lot of overhead for searching on one model. I want to say something like:
results = Assignment.objects.filter(any_column = search_string)
I understand that it may not be something short, but now the only option I can find, in addition to using the application for search, is to check each field separately and combine the results together.
source
share