Add test using pz:extendrecs
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 23 Jan 2013 11:23:47 +0000 (12:23 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 23 Jan 2013 11:23:47 +0000 (12:23 +0100)
test/gils_service.xml
test/test_http_28.res

index daecf4d..984bab6 100644 (file)
@@ -23,6 +23,7 @@
        <set name="pz:apdulog" value="1"/>
 
        <set name="pz:maxrecs" value="3" />
+       <set name="pz:extendrecs" value="6" />
       </settings>
 
       <metadata name="url" merge="unique"/>
index d32263c..f14ba5c 100644 (file)
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <show><status>OK</status>
 <activeclients>0</activeclients>
-<merged>3</merged>
+<merged>6</merged>
 <total>17</total>
 <start>0</start>
-<num>3</num>
+<num>6</num>
 <hit>
  <md-title>UTAH GEOCHROMOMETRY</md-title>
  <location id="z3950.indexdata.com/gils"
   <md-title>UTAH GEOCHROMOMETRY</md-title>
  </location>
  <count>1</count>
- <relevance>86304</relevance>
+ <relevance>100941</relevance>
  <relevance_info>
 field=title content=UTAH GEOCHROMOMETRY;
 utah: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(0)));
 utah: tf[1] += w[1](6) / length(2) (3.000000);
 relevance = 0;
-idf[1] = log(((1 + total(3))/termoccur(3));
-utah: relevance += 100000 * tf[1](3.000000) * idf[1](0.287682) (86304);
-score = relevance(86304);
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](3.000000) * idf[1](0.336472) (100941);
+score = relevance(100941);
  </relevance_info>
  <recid>content: title utah geochromometry author medium book</recid>
 </hit>
 <hit>
+ <md-title>UTAH CRIB FILE</md-title>
+ <location id="z3950.indexdata.com/gils"
+    name="Index Data GILS test server" checksum="2596737976">
+  <md-title>UTAH CRIB FILE</md-title>
+ </location>
+ <count>1</count>
+ <relevance>67294</relevance>
+ <relevance_info>
+field=title content=UTAH CRIB FILE;
+utah: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(0)));
+utah: tf[1] += w[1](6) / length(3) (2.000000);
+relevance = 0;
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](2.000000) * idf[1](0.336472) (67294);
+score = relevance(67294);
+ </relevance_info>
+ <recid>content: title utah crib file author medium book</recid>
+</hit>
+<hit>
  <md-title>UTAH EARTHQUAKE EPICENTERS</md-title>
  <location id="z3950.indexdata.com/gils"
     name="Index Data GILS test server" checksum="1725776531">
   <md-title>UTAH EARTHQUAKE EPICENTERS</md-title>
  </location>
  <count>1</count>
- <relevance>57536</relevance>
+ <relevance>67294</relevance>
  <relevance_info>
 field=title content=UTAH EARTHQUAKE EPICENTERS;
 utah: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(0)));
 utah: tf[1] += w[1](6) / length(3) (2.000000);
 relevance = 0;
-idf[1] = log(((1 + total(3))/termoccur(3));
-utah: relevance += 100000 * tf[1](2.000000) * idf[1](0.287682) (57536);
-score = relevance(57536);
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](2.000000) * idf[1](0.336472) (67294);
+score = relevance(67294);
  </relevance_info>
  <recid>content: title utah earthquake epicenters author medium book</recid>
 </hit>
 <hit>
+ <md-title>UTAH OIL FIELD FILE</md-title>
+ <location id="z3950.indexdata.com/gils"
+    name="Index Data GILS test server" checksum="2248353398">
+  <md-title>UTAH OIL FIELD FILE</md-title>
+ </location>
+ <count>1</count>
+ <relevance>50470</relevance>
+ <relevance_info>
+field=title content=UTAH OIL FIELD FILE;
+utah: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(0)));
+utah: tf[1] += w[1](6) / length(4) (1.500000);
+relevance = 0;
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](1.500000) * idf[1](0.336472) (50470);
+score = relevance(50470);
+ </relevance_info>
+ <recid>content: title utah oil field file author medium book</recid>
+</hit>
+<hit>
  <md-title>UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS</md-title>
  <location id="z3950.indexdata.com/gils"
     name="Index Data GILS test server" checksum="1899968820">
   <md-title>UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS</md-title>
  </location>
  <count>1</count>
- <relevance>28768</relevance>
+ <relevance>33647</relevance>
  <relevance_info>
 field=title content=UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS;
 utah: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(0)));
 utah: tf[1] += w[1](6) / length(6) (1.000000);
 relevance = 0;
-idf[1] = log(((1 + total(3))/termoccur(3));
-utah: relevance += 100000 * tf[1](1.000000) * idf[1](0.287682) (28768);
-score = relevance(28768);
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](1.000000) * idf[1](0.336472) (33647);
+score = relevance(33647);
  </relevance_info>
  <recid>content: title utah geological and mineral survey publications author medium book</recid>
 </hit>
+<hit>
+ <md-title>APPLIED GEOLOGY FILE</md-title>
+ <location id="z3950.indexdata.com/gils"
+    name="Index Data GILS test server" checksum="2422545687">
+  <md-title>APPLIED GEOLOGY FILE</md-title>
+ </location>
+ <count>1</count>
+ <relevance>0</relevance>
+ <relevance_info>
+relevance = 0;
+idf[1] = log(((1 + total(6))/termoccur(5));
+utah: relevance += 100000 * tf[1](0.000000) * idf[1](0.336472) (0);
+score = relevance(0);
+ </relevance_info>
+ <recid>content: title applied geology file author medium book</recid>
+</hit>
 </show>
\ No newline at end of file