1👍
✅
This kind of search is starting to push the boundaries of django and the ORM. Once it gets to this level of complexity I always switch over to a system that is built entirely for search. I dig lucene, so I usually go for ElasticSearch or Solr
Keep in mind that full text searching is a subsystem all unto itself, but can really add a lot of value to your site.
👤Al W
1👍
As Django models are using database queries there is not much magic you can do.
You could split your search by non-alphanumeric chars and search objects containing all words but this will not be smart and efficient.
If you want something really smart maybe you should check out haystack:
👤fsw
- [Answered ]-Upgrading from Python 2.6 to Python 2.7 in Django product
- [Answered ]-ModelForm and unique_together validation
Source:stackexchange.com