12 May
2020
12 May
'20
10:02 p.m.
On May 5, 2020, at 4:01 PM, Mark Sapiro <mark@msapiro.net> wrote:
As to the patch not working, there is a different patch at <https://github.com/alexsilva/xapian-haystack/commit/a53523d2d0d13929a0729d487e7af79b57ee17a6.diff> which may work.
There is one issue with this patch. Namely it calls force_str() in the section
# https://trac.xapian.org/wiki/FAQ/UniqueIds#Workingroundthetermlengthlimit
# Working round the term length limit
word = force_str(word)
word_length = len(word)
but xapian_backend.py imports force_text <https://github.com/notanumber/xapian-haystack/blob/master/xapian_backend.py#L13>. They are actually synonymous <https://docs.djangoproject.com/en/3.0/ref/utils/#module-django.utils.encoding>, but just appliing the patch without changinf force_str to force_text won't work.
The second patch did not work either. Ahh, well.
- Mark
mark@pdc-racing.net | 408-348-2878