--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/Ii17kQXbbNwJ.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-haystack?hl=en.
Doh, I'm rusty and was going from memory.That should be:SearchQuerySet().filter(content='ambiente').filter(content='externos').filter(content='acrílica').filter(content='tint')andSearchQuerySet().filter(content='ambiente externos tint acrilica')On Monday, 23 April, 2012 at 11:33 AM, Mario Menezes wrote:
Hi David,I'm doing the search without accents: "tinta acrilica ambiente externo". But this doesn't help. No results found.Regarding the second possibility, I've tried to search directly using the shell but I'm getting some errors in the SearchQuerySet expression:]>>> from haystack.query import SearchQuerySet
>>> SearchQuerySet.filter(content='ambiente',content='externos',content='tint',content='acrilica')File "<ipython-input-2-7fcbc4a653e2>", line 1SyntaxError: keyword argument repeated (<ipython-input-2-7fcbc4a653e2>, line 1)Using the second expression you suggested doesn't solve the problem too.>>> SearchQuerySet.filter('ambiente externos tint acrilica')TypeError Traceback (most recent call last)/home/mario/progs/python/qmaterial/trunk/qmaterial/<ipython-input-2-9c4084699dfc> in <module>()----> 1 SearchQuerySet.filter('ambiente externos tint acrilica')TypeError: unbound method filter() must be called with SearchQuerySet instance as first argument (got str instance instead)As I'm not good with haystack I couldn't find the problem with the expressions above. Sorry.
Thanks
2012/4/23 David SauveIf you search for the terms "tint ambiente externo" does it find them? I wonder if it's having an issue with the accents.
To post to this group, send email to django-haystack@googlegroups.com.
To unsubscribe from this group, send email to django-haystack+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To post to this group, send email to django-haystack@googlegroups.com.
To unsubscribe from this group, send email to django-haystack+unsubscribe@googlegroups.com.
--
--
Mario O.de Menezes, Ph.D.
"Many are the plans in a man's heart, but is the Lord's purpose that prevails" Pv 19.21
http://www.momenezes.com - LinuxUser: #24626
--
You received this message because you are subscribed to the Google Groups "django-haystack" group.
To post to this group, send email to django-haystack@googlegroups.com.
To unsubscribe from this group, send email to django-haystack+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/tBGNV8aKp3gJ.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/django-haystack/-/OUNE9eXEoT0J.
To post to this group, send email to django-...@googlegroups.com.
To unsubscribe from this group, send email to django-haysta...@googlegroups.com.