Author: ssmiweve
Date: 2007-06-26 17:22:29 +0200 (Tue, 26 Jun 2007)
New Revision: 5434

Modified:
   
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java
Log:
SEARCH-2839 - ClassCastException BasicSearchResult to FastSearchResult in 
fast-retriever


Modified: 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java
===================================================================
--- 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java
       2007-06-26 14:23:05 UTC (rev 5433)
+++ 
branches/2.14/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NavigatableESPFastCommand.java
       2007-06-26 15:22:29 UTC (rev 5434)
@@ -35,6 +35,7 @@
  * capabilities.
  *
  * @author maek
+ * @version $Id$
  */
 public class NavigatableESPFastCommand extends ESPFastSearchCommand {
 
@@ -64,6 +65,7 @@
     }
 
     public ResultList<? extends ResultItem> execute() {
+        
         if (getNavigators() != null) {
             for (String navigatorKey : getNavigators().keySet()) {
 
@@ -73,10 +75,10 @@
             }
         }
 
-        final FastSearchResult searchResult = (FastSearchResult) 
super.execute();
+        final ResultList<? extends ResultItem> searchResult = super.execute();
 
-        if (getNavigators() != null) {
-            collectModifiers(getIQueryResult(), searchResult);
+        if (null != getNavigators() && searchResult instanceof 
FastSearchResult) {
+            collectModifiers(getIQueryResult(), 
(FastSearchResult)searchResult);
         }
 
         return searchResult;

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

Reply via email to