Browse files

increment counter so that pages break

  • Loading branch information...
1 parent 7dfa0c1 commit 48910fdd5c5734842837b18ffa948d4285d26a83 @dbasch committed Jul 3, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 indexer.rb
View
3 indexer.rb
@@ -62,7 +62,8 @@
end
page += user + ' ' + text + ' '
- printf "docid: %d, text %s", docid, page
+ lines += 1
+ printf "docid: %d, text %s", docid, user + ' ' + text
begin
index.document(docid.to_s).add({:text => page, :timestamp => ts, :matchall => :all}, :variables => {1 => docid})

0 comments on commit 48910fd

Please sign in to comment.