<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="www" schema="www-search" id="requests-by-keywords"
 charttype="bars">

 <lire:title>Requests By Keywords Report</lire:title>
 <lire:description>
  <para>This report shows the number of requests that resulted from
   keywords in search engine.</para>
 </lire:description>

 <lire:param-spec>
  <lire:param name="keyword_to_show" type="int" default="10">
   <lire:description>
    <para>This parameter controls the number of keywords to
     display in the report.
    </para>
   </lire:description>
  </lire:param>
 </lire:param-spec>

 <lire:display-spec>
  <lire:title>Requests By Keywords, Top $keyword_to_show</lire:title>
 </lire:display-spec>

 <lire:filter-spec>
  <lire:ne arg1="$keywords" arg2="-"/>
 </lire:filter-spec>

 <lire:report-calc-spec>
  <lire:group sort="-request_total" limit="$keyword_to_show">
   <lire:field name="keywords"/>

   <lire:count name="request_total" label="Requests"/>
   <lire:count name="request_ratio" ratio="table" label="% Total"/>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>

