Hi

I'm fiddling around with MySQL fulltext search and run into a problem.

Using the below code works:

match_expr = "MATCH(name) AGAINST (%s IN BOOLEAN MODE)"
qs =
Place.objects.all().filter(name__search=query).extra(select={'relevance':
match_expr}, params=[query])


But when calling qs.count() I get:
TypeError at /
not all arguments converted during string formatting

Is this a bug or am I using the extra in a wrong way?

Cheers
Sten


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to