X-Git-Url: http://git.indexdata.com/?p=simpleserver-moved-to-github.git;a=blobdiff_plain;f=SimpleServer.xs;h=c9eb888b7b2a81bb86f266754644978ec8feff37;hp=285572644ae7b5347e3c0ab11ff8aa0460f309e4;hb=a48f5eb3db599938e2077b582ade3e1161837d44;hpb=83b87dd4d102d865215d623b59f7ede2be521c1b diff --git a/SimpleServer.xs b/SimpleServer.xs index 2855726..c9eb888 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* This file is part of simpleserver. - * Copyright (C) 2000-2013 Index Data. + * Copyright (C) 2000-2014 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -1002,6 +1002,11 @@ int bend_search(void *handle, bend_search_rr *rr) rr->extra_response_data = odr_strdupn(rr->stream, ptr, len); } + temp = hv_fetch(href, "ESTIMATED" "_HIT_" "COUNT", 19, 0); + if (temp) + { + rr->estimated_hit_count = SvIV(*temp); + } hv_undef(href); av_undef(aref);