Tuesday, April 28, 2015

UnicodeError while searching in haystack/whoosh index

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJVP3OLAAoJEH2EY3tf/UcFKAkP/RtK7zItHTJtebuDXgTQaVZo
6YBBmmnq/FHONpdymfjB+QHfDhEkkJR6wmSSwNVSdUnjF+eREMK/E9GnPxPxq2/4
EWcZKrxOqKFhZ4MseQr7enS+2EJ5QNtXoOk+HBt14vGNZX7oukQkjj2MATI+2nm1
I3ie7sbfi+kJTp2L7DlLBNjbN0QQ9ej+UvgEMWrC1EJGT4NU3hWKkoZ51/pDOTib
uVWxYVe79EbvJTzG7qLq47LrGX6/6k8jDe31qpErZw+hs3XqMG78D59Avl5dK3RB
n2Q1UoEQO/zAuIQZ7IFHaMewv09FNYrZr605MNLvvarFS/b4N0CBY6sDAVNE2Da8
GZduNcD/7vuMf7FYU1l4ICK/a1X/zGL/H7aenNMW2YrzV4x5cLFA8t7ulsHLk25W
c0Bxbz13GIxK1KzynAaskLDaJbIQ41BQwMZeTJLIo+AyoGrUA9+09XD7egcQuKUk
Unsre0r8uPx6gZ7/2EVL/qF6sr1jU7cmPr9k3u1ZAs++d1rqrSd7/0bQLtNbpGSI
2KzATufPcVYxNh85Hkp5gZ4Zmxsocgw8gQdTdw+fIOdr+bmGloa52c1HMH0ZiDAP
Lz5KjytNtWhnknpE8Tv+cqSUo7eA/lLx7pOiGt7m3Iaxc3IAQBfXWuTXAMY5ajpn
Yfspo33vcrnXFtH4NSkT
=6rV3
-----END PGP SIGNATURE-----
Hi,

I'm working on an django-cms 3.0.13/py2.7 page atm and came across an
weird behaviour using haystack with whoosh.

When using rebuild_index everything works fine.
But using update_index afterwards leads to an UnicodeDecodeError when
searching for a page with umlauts.
Error thrown in "whoosh/reading.py | expand_prefix"

Assuming I interpret the rebuild and update command code correct,
rebuild just calls update after clean. So why does it work with rebuild
but not with update?

I'm using an adapted version of search_indexes.py example of the
django-cms project.[1]

Any ideas/solutions?

Many thanks,
Florian

[1] http://fpaste.org/216170/30221364/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/553F738A.8080204%40ist-total.org.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment