From 0c0a0878a8b3932bb5ab782d872544416d3caa3c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 6 May 2014 12:35:00 +0200 Subject: [PATCH] Re-ingest native facets PAZ-934 --- src/client.c | 1 + test/test_facets.urls | 2 ++ test/test_facets_26.res | 2 ++ test/test_facets_27.res | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 test/test_facets_26.res create mode 100644 test/test_facets_27.res diff --git a/src/client.c b/src/client.c index fbfc564..f78530c 100644 --- a/src/client.c +++ b/src/client.c @@ -868,6 +868,7 @@ int client_start_search(struct client *cl) if (cl->same_search == 1 && rc_prep_connection == 2) { session_log(se, YLOG_LOG, "client %s resuse result", client_get_id(cl)); + client_report_facets(cl, cl->resultset); return client_reingest(cl); } else if (!rc_prep_connection) diff --git a/test/test_facets.urls b/test/test_facets.urls index 5f087c0..bf2924b 100644 --- a/test/test_facets.urls +++ b/test/test_facets.urls @@ -23,3 +23,5 @@ test_facets_settings_2.xml http://localhost:9763/search.pz2?session=2&command=se http://localhost:9763/search.pz2?session=2&command=search&query=9+and+computer 10 http://localhost:9763/search.pz2?session=2&command=show&block=1 http://localhost:9763/search.pz2?session=2&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate%2Cmedium +http://localhost:9763/search.pz2?session=2&command=search&query=9+and+computer +http://localhost:9763/search.pz2?session=2&command=termlist&name=xtargets%2Cauthor%2Csubject%2Cdate%2Cmedium diff --git a/test/test_facets_26.res b/test/test_facets_26.res new file mode 100644 index 0000000..ab63fe6 --- /dev/null +++ b/test/test_facets_26.res @@ -0,0 +1,2 @@ + +OK \ No newline at end of file diff --git a/test/test_facets_27.res b/test/test_facets_27.res new file mode 100644 index 0000000..c259c84 --- /dev/null +++ b/test/test_facets_27.res @@ -0,0 +1,49 @@ + +0 + + +localhost:9999/db1 +db1 +9 +Client_Idle +0 + + + +author0100 +author190 +author280 +author370 +author460 +author550 +author640 +author730 +author820 +author910 + + +subject0100 +subject190 +subject280 +subject370 +subject460 +subject550 +subject640 +subject730 +subject820 +subject910 + + +date0100 +date190 +date280 +date370 +date460 +date550 +date640 +date730 +date820 +date910 + + + \ No newline at end of file -- 1.7.10.4