1. Matt Chaput
  2. whoosh
Issue #178 resolved

Crash on FieldCache when more than 65K text values

Carlo Pires
created an issue

{{{ Traceback (most recent call last): File "main.py", line 150, in <module> for result in searcher.search_page(query, page, pagelen=20, sortedby=facet): File "/home/carlo/workspace/whooshtest/src/whoosh/searching.py", line 541, in search_page results = self.search(query, limit=pagenum * pagelen, **kwargs) File "/home/carlo/workspace/whooshtest/src/whoosh/searching.py", line 665, in search allow=filter, restrict=mask) File "/home/carlo/workspace/whooshtest/src/whoosh/searching.py", line 1113, in sort catter.set_searcher(s, offset) File "/home/carlo/workspace/whooshtest/src/whoosh/sorting.py", line 180, in set_searcher self.fieldcache = searcher.reader().fieldcache(self.fieldname) File "/home/carlo/workspace/whooshtest/src/whoosh/filedb/filereading.py", line 384, in fieldcache fc = FieldCache.from_field(self, fieldname) File "/home/carlo/workspace/whooshtest/src/whoosh/filedb/fieldcache.py", line 186, in from_field if newcode != order.typecode: UnboundLocalError: local variable 'newcode' referenced before assignment

}}}