Author: gttersen
Date: 2007-05-02 14:46:42 +0200 (Wed, 02 May 2007)
New Revision: 4937

Modified:
   
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/BlogSearchCommand.java
Log:
Removed unused import that referred to a none existing class

Modified: 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/BlogSearchCommand.java
===================================================================
--- 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/BlogSearchCommand.java
       2007-05-02 12:27:47 UTC (rev 4936)
+++ 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/BlogSearchCommand.java
       2007-05-02 12:46:42 UTC (rev 4937)
@@ -8,36 +8,29 @@
 
 package no.schibstedsok.searchportal.mode.command;
 
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import no.schibstedsok.searchportal.query.UrlClause;
 import no.schibstedsok.searchportal.query.LeafClause;
-import no.schibstedsok.searchportal.result.BasicSearchResultItem;
-import no.schibstedsok.searchportal.result.BlogSearchResultItem;
-import no.schibstedsok.searchportal.result.CatalogueSearchResultItem;
+import no.schibstedsok.searchportal.query.UrlClause;
 import no.schibstedsok.searchportal.result.SearchResult;
 import no.schibstedsok.searchportal.result.SearchResultItem;
 
 /**
- *
  * Implementation of blog search command.
- *
+ * <p/>
  * Due to how the blog index is configured queries sent to the index must
  * be applied to two composite fields:
- *
+ * <p/>
  * A search for "sesam bloggsøk" results in the following query sent to the 
index:
- *
+ * <p/>
  * (content:sesam or extended:sesam) and (content:bloggsøk or 
extended:bloggsøk)
  *
  * @author maek
  */
 public final class BlogSearchCommand extends AbstractESPFastSearchCommand {
 
-    /** Creates a new instance of FastSearchCommand
+    /**
+     * Creates a new instance of FastSearchCommand
      *
-     * @param cxt Search command context.
+     * @param cxt        Search command context.
      * @param parameters Search command parameters.
      */
     public BlogSearchCommand(final Context cxt) {
@@ -48,23 +41,23 @@
     // Public --------------------------------------------------------
     public SearchResult execute() {
         final SearchResult result = super.execute();
-        for(SearchResultItem item : result.getResults()) {
+        for (SearchResultItem item : result.getResults()) {
             String publishedTime = item.getField("publishedtime");
 
             if (isEpoch(publishedTime)) {
-               publishedTime = item.getField("httpheaderdate");
+                publishedTime = item.getField("httpheaderdate");
             }
             item.addField("publishedtime", publishedTime);
         }
-               
+
         if (getParameter("collapse") != null && 
!getParameter("collapse").equals("")) {
             final SearchResultItem item = result.getResults().get(0);
             String publishedTime = item.getField("publishedtime");
             if (isEpoch(publishedTime)) {
-               publishedTime = item.getField("httpheaderdate");
+                publishedTime = item.getField("httpheaderdate");
             }
-            if(!isEpoch(publishedTime)) {
-               result.addField("expandedBlog", item.getField("title"));
+            if (!isEpoch(publishedTime)) {
+                result.addField("expandedBlog", item.getField("title"));
             }
         }
         return result;
@@ -72,13 +65,13 @@
 
 
     protected void visitImpl(final LeafClause clause) {
-        
+
         if (clause.getField() == null && 
!getTransformedTerm(clause).trim().equals("")) {
-            
+
             appendTermRepresentation(getTransformedTerm(clause));
-            
-        } else if(null != clause.getField() && null == getFieldFilter(clause)) 
{
-            
+
+        } else if (null != clause.getField() && null == 
getFieldFilter(clause)) {
+
             appendTermRepresentation(escapeFieldedLeaf(clause));
         }
     }
@@ -101,9 +94,9 @@
         appendToQueryRepresentation(term);
         appendToQueryRepresentation(")");
     }
-    
+
     private boolean isEpoch(String dateString) {
-       return dateString.startsWith("1970");
+        return dateString.startsWith("1970");
     }
 
 }

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

Reply via email to