Author: mickw
Date: 2006-05-02 10:49:40 +0200 (Tue, 02 May 2006)
New Revision: 2837

Modified:
   
trunk/src/java/no/schibstedsok/front/searchportal/query/run/RunningQueryImpl.java
Log:
extra product reporting:
 - no-hits, report query when zero hits (including navigation) were returned,
 - size attribute to enrichments element, making searching for enrichment lists 
easier.

Modified: 
trunk/src/java/no/schibstedsok/front/searchportal/query/run/RunningQueryImpl.java
===================================================================
--- 
trunk/src/java/no/schibstedsok/front/searchportal/query/run/RunningQueryImpl.java
   2006-05-02 08:06:26 UTC (rev 2836)
+++ 
trunk/src/java/no/schibstedsok/front/searchportal/query/run/RunningQueryImpl.java
   2006-05-02 08:49:40 UTC (rev 2837)
@@ -290,6 +290,8 @@
             Collections.sort(sources);
 
             if (!hitsToShow) {
+                PRODUCT_LOG.info("<no-hits mode=\"" + 
context.getSearchTab().getKey() + "\">"
+                        + "<query>" + queryStr + "</query></no-hits>");
 // FIXME: i do not know how to reset/clean the sitemesh's outputStream so the 
result from the new RunningQuery are used.                
 //                int sourceHits = 0;
 //                for (final Iterator it = sources.iterator(); it.hasNext();) {
@@ -309,7 +311,8 @@
 
                 Collections.sort(enrichments);
 
-                PRODUCT_LOG.info("<enrichments mode=\"" + 
context.getSearchTab().getKey() + "\">"
+                PRODUCT_LOG.info("<enrichments mode=\"" + 
context.getSearchTab().getKey() 
+                        + "\" size=\"" + enrichments.size() + "\">"
                         + "<query>" + queryStr + "</query>");
                 for( Enrichment e : enrichments){
                     PRODUCT_LOG.info("  <enrichment name=\"" + e.getName()

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to