Merge pull request #1045 from mojombo/fix-lsi-build
Fix the index build with LSI. Fixes #1039.
This commit is contained in:
commit
368582832d
|
@ -261,7 +261,7 @@ module Jekyll
|
||||||
puts "Starting the classifier..."
|
puts "Starting the classifier..."
|
||||||
lsi = Classifier::LSI.new(:auto_rebuild => false)
|
lsi = Classifier::LSI.new(:auto_rebuild => false)
|
||||||
$stdout.print(" Populating LSI... "); $stdout.flush
|
$stdout.print(" Populating LSI... "); $stdout.flush
|
||||||
posts.each { |x| $stdout.print("."); $stdout.flush; lsi.add_item(x) }
|
self.site.posts.each { |x| $stdout.print("."); $stdout.flush; lsi.add_item(x) }
|
||||||
$stdout.print("\n Rebuilding LSI index... ")
|
$stdout.print("\n Rebuilding LSI index... ")
|
||||||
lsi.build_index
|
lsi.build_index
|
||||||
puts ""
|
puts ""
|
||||||
|
|
Loading…
Reference in New Issue