Issue #377 new

Error while reading old index

Sylvain Soliman
created an issue

Using Whoosh 2.5.5 under Python 2.7 I just encountered an error while trying to search an old index (I'd say Whoosh 2.3 but not sure):

  File "/Users/soliman/prog/python/pwik/whoosh_db.py", line 85, in search_entries
    return searcher.search(query, sortedby=sortedby, limit=None)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/searching.py", line 787, in search
    self.search_with_collector(q, c)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/searching.py", line 820, in search_with_collector
    collector.run()
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/collectors.py", line 143, in run
    self.set_subsearcher(subsearcher, offset)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/collectors.py", line 564, in set_subsearcher
    Collector.set_subsearcher(self, subsearcher, offset)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/collectors.py", line 171, in set_subsearcher
    self.matcher = self.q.matcher(subsearcher, self.context)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/query/ranges.py", line 314, in matcher
    q = self._compile_query(searcher.reader())
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/query/ranges.py", line 297, in _compile_query
    startbytes = stb(startnum, shift)
  File "/Users/soliman/Library/Python/2.7/lib/python/site-packages/whoosh/codec/whoosh2.py", line 2019, in sortable_to_bytes
    return pack_byte(shift) + self._to_text()
TypeError: int_to_text() takes at least 1 argument (0 given)

Any idea what might be happening? Do you need any more info?

Comments (0)

  1. Log in to comment