From 4fdc30321a87fe9673a806886840d1bb34a3ba9c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 21 May 2013 15:48:03 +0200 Subject: [PATCH] Test using dynamic rank --- test/test_http.urls | 2 +- test/test_http_49.res | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/test/test_http.urls b/test/test_http.urls index c57a926..864f5f9 100644 --- a/test/test_http.urls +++ b/test/test_http.urls @@ -46,7 +46,7 @@ http://localhost:9763/search.pz2?command=init&pz:elements%5Bz3950.indexdata.com% http://localhost:9763/search.pz2?session=6&command=record&id=content%3A+title+computer+processing+of+dynamic+images+from+an+anger+scintillation+camera+author+medium+book&offset=0&nativesyntax=txml%3Bcharset%3Dmarc-8 http://localhost:9763/search.pz2?command=init&pz:elements%5Bz3950.indexdata.com%2Fmarc%5D=F http://localhost:9763/search.pz2?session=7&command=search&query=greece -1 http://localhost:9763/search.pz2?session=7&command=show&block=1 +1 http://localhost:9763/search.pz2?session=7&command=show&block=1&rank=title%3D9,author%3D7 1 http://localhost:9763/search.pz2?session=6&command=show&block=1 http://localhost:9763/search.pz2?session=6&command=record&id=content%3A+title+computer+processing+of+dynamic+images+from+an+anger+scintillation+camera+author+medium+book&checksum=2614320583 http://localhost:9763/search.pz2?command=init diff --git a/test/test_http_49.res b/test/test_http_49.res index 99b482c..9832043 100644 --- a/test/test_http_49.res +++ b/test/test_http_49.res @@ -34,18 +34,15 @@ PAZPAR2_NULL_c 1 - 291121 + 124766 field=title content=The religious teachers of Greece.; -greece: w[1] += w(6) / (1+log2(1+lead_decay(0.000000) * length(4))); -greece: tf[1] += w[1](6) / length(5) (1.200000); -field=subject content=Greece; -greece: w[1] += w(3) / (1+log2(1+lead_decay(0.000000) * length(0))); -greece: tf[1] += w[1](3) / length(1) (4.200000); +greece: w[1] += w(9) / (1+log2(1+lead_decay(0.000000) * length(4))); +greece: tf[1] += w[1](9) / length(5) (1.800000); relevance = 0; idf[1] = log(((1 + total(1))/termoccur(1)); -greece: relevance += 100000 * tf[1](4.200000) * idf[1](0.693147) (291121); -score = relevance(291121); +greece: relevance += 100000 * tf[1](1.800000) * idf[1](0.693147) (124766); +score = relevance(124766); content: title the religious teachers of greece author adam james medium book -- 1.7.10.4