How do I do a partial field match using Haystack?
问题 I needed a simple search tool for my django-powered web site, so I went with Haystack and Solr. I have set everything up correctly and can find the correct search results when I type in the exact phrase, but I can't get any results when typing in a partial phrase. For example: "John" returns "John Doe" but "Joh" doesn't return anything. Model: class Person(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) Search Index: class PersonIndex