Django-Haystack with Solr contains search
问题 I am using haystack within a project using solr as the backend. I want to be able to perform a contains search, similar to the Django .filter(something__contains="...") The __startswith option does not suit our needs as it, as the name suggests, looks for words that start with the string. I tried to use something like *keyword* but Solr does not allow the * to be used as the first character Thanks. 回答1: To get "contains" functionallity you can use: <tokenizer class="solr