]> git.cworth.org Git - sup/commit
bugfix: dates need to be truncated for xapian to index
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 24 Jun 2009 17:30:43 +0000 (13:30 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 24 Jun 2009 17:30:43 +0000 (13:30 -0400)
commit63f87a5ff3a996352cd733b6ac2e432c9e86ab97
treef71de4bc0db37f431e14e833c9458f96fa0df5fa
parentb6097e518d47e94adb5231451cba6ccbecb7cf00
bugfix: dates need to be truncated for xapian to index

If dates are way out of range, the current indexing process both dies
and generates bad doc ids. This patch forces dates to be within a
reasonable range (current between 1969 and 2038.) Not necessarily the
best solution.
lib/sup/xapian_index.rb