Let me imagine a way I’d like to use a full-text search in Django. It would look like this:
….first_name = models.CharField(maxlength = 50)
….about = models.TextField()
# This would return a QuerySet
people = Person.objects.search(“Miles Davis”)
The inner class “TextSearch” would take optional arguments like the list of fields to be indexed. All fields would be indexed by default.
I am aware of already existing projects which provide search capabilities to Django.
- Mercurytide uses MySQL-specific functions, so it wouldn’t work for other database backends.
- Merquery doesn’t seem to have a nice API. For example, a system path is needed to initialize an indexer.
Any other search engines out there for Django?