You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to do a simple filter by an integer value. The integer is being unicode encoded somewhere which is causing mass craziness. Verified issue with daniellindsley on #haystack.
joshua@symbiosis-staging:/var/www/vhosts/webrealtr.com$ sudo python pri*/pro*/my*/manage.py shell
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated
from sets import ImmutableSet
Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from haystack.query import SearchQuerySet
>>> SearchQuerySet().filter(price__gte=0)
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/haystack/query.py", line 39, in __repr__
data = list(self[:REPR_OUTPUT_SIZE])
File "/usr/local/lib/python2.6/dist-packages/haystack/query.py", line 156, in __getitem__
if not self._cache_is_full():
File "/usr/local/lib/python2.6/dist-packages/haystack/query.py", line 59, in _cache_is_full
return len(self._result_cache) >= len(self) - self._ignored_result_count
File "/usr/local/lib/python2.6/dist-packages/haystack/query.py", line 48, in __len__
return self.query.get_count()
File "/usr/local/lib/python2.6/dist-packages/haystack/backends/__init__.py", line 284, in get_count
self.run()
File "/usr/local/lib/python2.6/dist-packages/haystack/backends/xapian_backend.py", line 983, in run
results = self.backend.search(final_query, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/haystack/backends/xapian_backend.py", line 319, in search
database, query_string, narrow_queries, boost
File "/usr/local/lib/python2.6/dist-packages/haystack/backends/xapian_backend.py", line 724, in _query
query = qp.parse_query(query_string, self._flags(query_string))
TypeError: : Swig director type mismatch in output value of type '(Xapian::valueno, std::string, std::string)'
>>>
When you get a chance ;)
The text was updated successfully, but these errors were encountered:
I'm trying to do a simple filter by an integer value. The integer is being unicode encoded somewhere which is causing mass craziness. Verified issue with daniellindsley on #haystack.
When you get a chance ;)
The text was updated successfully, but these errors were encountered: