]> git.cworth.org Git - sup/commit
only use the first 255 characters of a message id (ferret bug workaround)
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 25 Feb 2008 04:53:23 +0000 (20:53 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 25 Feb 2008 04:53:23 +0000 (20:53 -0800)
commitb06a8dccf2572d3ac6b99bdb7519ff6e8b85c3f9
tree043b9475bb866439bb3644bb53537a881e6aa503
parenta57e59d2566ddf6ed817e952759b2cce2eae8d87
only use the first 255 characters of a message id (ferret bug workaround)

Apparently, constructing a TermQuery object with a field value of more than
255 characters never successfully matches.

This is not a good long-term solution. A good one would be to take the SHA1
of every message id instead. That will require an index rebuild, so I will
save that patch until later.
lib/sup/message.rb