Merge branch 'master' of github.com:mojombo/jekyll
* 'master' of github.com:mojombo/jekyll: Slight stylistic tweak to LSI initialisation. faster_lsi: Massively accelerate LSI performance.
This commit is contained in:
commit
8fb36ab064
|
@ -183,9 +183,12 @@ module Jekyll
|
||||||
|
|
||||||
if self.site.lsi
|
if self.site.lsi
|
||||||
self.class.lsi ||= begin
|
self.class.lsi ||= begin
|
||||||
puts "Running the classifier... this could take a while."
|
puts "Starting the classifier..."
|
||||||
lsi = Classifier::LSI.new
|
lsi = Classifier::LSI.new(:auto_rebuild => false)
|
||||||
|
$stdout.print(" Populating LSI... ");$stdout.flush
|
||||||
posts.each { |x| $stdout.print(".");$stdout.flush;lsi.add_item(x) }
|
posts.each { |x| $stdout.print(".");$stdout.flush;lsi.add_item(x) }
|
||||||
|
$stdout.print("\n Rebuilding LSI index... ")
|
||||||
|
lsi.build_index
|
||||||
puts ""
|
puts ""
|
||||||
lsi
|
lsi
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue