forked from daltonj/KbBridge
-
Notifications
You must be signed in to change notification settings - Fork 2
/
TrecKba.readme
54 lines (49 loc) · 1.64 KB
/
TrecKba.readme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
create a json file "kba-index.json" with this content:
---------------------------------
{
"filetype" : "xz" ,
"parser" : {
"externalParsers" : [
{
"filetype" : "xz",
"class" : "org.lemurproject.galago.contrib.parse.TrecKBAParser"
}
]
},
"tokenizer" : {
"formats" : {"kbadate" : "long", "kbastreamticks" : "long", "kbastreamtimestamp" : "string"},
"fields" : ["title", "kbadate", "kbastreamticks", "kbastreamtimestamp", "kbatype"]
},
"fieldIndexParameters" : { "stemmedPostings" : false },
"stemmedPostings" : false
}
----------------------------------
Call
core/target/appassembler/bin/galago build --indexPath=$indexdir --inputPath+$inputdir kba-index.json
=======================================================
Example json
{
"inputPath" : ["/home/dietz/collections/2011-10-09-00",
"/home/dietz/collections/2011-10-09-01",
"/home/dietz/collections/2011-10-09-02",
]
"indexPath" : "/home/dietz/treckba/index/treckba-short",
"filetype" : "xz" ,
"parser" : {
"externalParsers" : [
{
"filetype" : "xz",
"class" : "org.lemurproject.galago.contrib.parse.TrecKBAParser"
}
]
},
"tokenizer" : {
"formats" : {"kbadate" : "long", "kbastreamticks" : "long", "kbastreamtimestamp" : "string"},
"fields" : ["title", "kbadate", "kbastreamticks", "kbastreamtimestamp", "kbatype"]
},
"fieldIndexParameters" : { "stemmedPostings" : false },
"stemmedPostings" : false,
"mode" : "drmaa",
"stemmedPostings" : false,
"galagoJobDir" : "/home/dietz/treckba/galago-kba-tmp/"
}