From d0cc98809c663048c9ad274ac95aa3d66cf370d6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 23 Jan 2013 12:23:47 +0100 Subject: [PATCH] Add test using pz:extendrecs --- test/gils_service.xml | 1 + test/test_http_28.res | 82 ++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 69 insertions(+), 14 deletions(-) diff --git a/test/gils_service.xml b/test/gils_service.xml index daecf4d..984bab6 100644 --- a/test/gils_service.xml +++ b/test/gils_service.xml @@ -23,6 +23,7 @@ + diff --git a/test/test_http_28.res b/test/test_http_28.res index d32263c..f14ba5c 100644 --- a/test/test_http_28.res +++ b/test/test_http_28.res @@ -1,10 +1,10 @@ OK 0 -3 +6 17 0 -3 +6 UTAH GEOCHROMOMETRY UTAH GEOCHROMOMETRY 1 - 86304 + 100941 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); content: title utah geochromometry author medium book + UTAH CRIB FILE + + UTAH CRIB FILE + + 1 + 67294 + +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); + + content: title utah crib file author medium book + + UTAH EARTHQUAKE EPICENTERS UTAH EARTHQUAKE EPICENTERS 1 - 57536 + 67294 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); content: title utah earthquake epicenters author medium book + UTAH OIL FIELD FILE + + UTAH OIL FIELD FILE + + 1 + 50470 + +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); + + content: title utah oil field file author medium book + + UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS 1 - 28768 + 33647 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); content: title utah geological and mineral survey publications author medium book + + APPLIED GEOLOGY FILE + + APPLIED GEOLOGY FILE + + 1 + 0 + +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); + + content: title applied geology file author medium book + \ No newline at end of file -- 1.7.10.4