Author: ssthkjer
Date: 2006-12-19 16:23:42 +0100 (Tue, 19 Dec 2006)
New Revision: 4207

Modified:
   
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsSearchCommand.java
Log:
https://jira.sesam.no/jira/browse/SEARCH-1172, remove papernews from norwegian 
news


Modified: 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsSearchCommand.java
===================================================================
--- 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsSearchCommand.java
       2006-12-19 09:03:04 UTC (rev 4206)
+++ 
trunk/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsSearchCommand.java
       2006-12-19 15:23:42 UTC (rev 4207)
@@ -74,7 +74,7 @@
                 if (containsJustThePrefix() || 
getTransformedQuery().equals("")) {
                     filterBuilder.append(FAST_SIZE_HACK);
                 }
-
+                                
                 if (!getSearchConfiguration().isIgnoreNavigation()) {
 
                     final String contentSource = getParameter("contentsource");
@@ -82,7 +82,7 @@
 
                     // AAhhrghh. Need to provide backwards compatibility.
                     // People are linking us using contentsource="Norske 
nyheter"
-                    if (contentSource != null && !contentSource.equals("")) {
+                    if (contentSource != null && !contentSource.equals("")) {  
                      
                         if (contentSource.equals("Norske nyheter")) {
                             filterBuilder.append(" +newscountry:Norge");
                         } else {
@@ -92,6 +92,11 @@
                     if (newsCountry != null && !newsCountry.equals("")) {
                         filterBuilder.append(" +newscountry:"+ newsCountry);
                     }
+  
+                    // Add filter to remove papernews from norwegian newssearch
+                    if (!contentSource.equals("Mediearkivet")) {
+                        filterBuilder.append(" -meta.collection:mano");
+                    }
                 }
             }
         }

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

Reply via email to