public
Description: Fulltext Search Engine built in ONE day
Clone URL: git://github.com/stanaka/one-day-fulltext-search.git
fix
stanaka (author)
Tue May 13 09:30:30 -0700 2008
commit  bc28ee85f042bf90d790fb900481f56c2c6d8283
tree    e68dac60250bba92689c84d831707ad5ccb45114
parent  99d9538145197206cec6b524808af2273b828f8b
...
6
7
8
 
 
 
 
 
 
 
 
 
9
10
11
 
12
13
...
6
7
8
9
10
11
12
13
14
15
16
17
18
 
 
19
20
21
0
@@ -6,8 +6,16 @@ require 'pp'
0
 
0
 $KCODE = 'UTF8'
0
 
0
+if ARGV.length < 1 then
0
+ puts "#{$0} word [bcount_factor] [scount_factor] [time_factor]"
0
+ exit
0
+end
0
+word = ARGV[0]
0
+bcount_factor = ARGV.length > 1 ? ARGV[1] : 1
0
+scount_factor = ARGV.length > 2 ? ARGV[2] : 1
0
+time_factor = ARGV.length > 3 ? ARGV[3] : 1
0
+
0
 there = DRbObject.new_with_uri('druby://localhost:12345')
0
-pp there.search('これは', 0.2, 1, 1)
0
-#pp there.search('Full', 0.2, 1, 1)
0
+pp there.search(word, bcount_factor, scount_factor, time_factor)
0
 
0
 

Comments

    No one has commented yet.