Author: magnuse
Date: 2006-04-04 22:14:08 +0200 (Tue, 04 Apr 2006)
New Revision: 2708

Modified:
   
trunk/src/java/no/schibstedsok/front/searchportal/command/impl/SearchCommandFactory.java
   
trunk/src/java/no/schibstedsok/front/searchportal/query/token/TokenPredicate.java
Log:
Added analysis lists for public companies.


Modified: 
trunk/src/java/no/schibstedsok/front/searchportal/command/impl/SearchCommandFactory.java
===================================================================
--- 
trunk/src/java/no/schibstedsok/front/searchportal/command/impl/SearchCommandFactory.java
    2006-04-04 17:56:23 UTC (rev 2707)
+++ 
trunk/src/java/no/schibstedsok/front/searchportal/command/impl/SearchCommandFactory.java
    2006-04-04 20:14:08 UTC (rev 2708)
@@ -15,6 +15,7 @@
 import no.schibstedsok.front.searchportal.command.OverturePPCCommand;
 import no.schibstedsok.front.searchportal.command.PicSearchCommand;
 import no.schibstedsok.front.searchportal.command.SearchCommand;
+import no.schibstedsok.front.searchportal.command.StockSearchCommand;
 import no.schibstedsok.front.searchportal.command.WebSearchCommand;
 import no.schibstedsok.front.searchportal.command.WhiteSearchCommand;
 import no.schibstedsok.front.searchportal.command.YellowGeoSearch;
@@ -25,6 +26,7 @@
 import no.schibstedsok.front.searchportal.configuration.PicSearchConfiguration;
 import no.schibstedsok.front.searchportal.configuration.SearchConfiguration;
 import 
no.schibstedsok.front.searchportal.configuration.SensisSearchConfiguration;
+import 
no.schibstedsok.front.searchportal.configuration.StockSearchConfiguration;
 import no.schibstedsok.front.searchportal.configuration.WebSearchConfiguration;
 import 
no.schibstedsok.front.searchportal.configuration.WhiteSearchConfiguration;
 import 
no.schibstedsok.front.searchportal.configuration.YellowSearchConfiguration;
@@ -53,6 +55,8 @@
         // An example of possibility (2) would be XXXSearchConfiguration --> 
XXXSearchCommand
         if (config instanceof YellowSearchConfiguration) {
             return new YellowGeoSearch(cxt, parameters);
+        } if (config instanceof StockSearchConfiguration) {
+            return new StockSearchCommand(cxt, parameters);
         } if (config instanceof WhiteSearchConfiguration) {
             return new WhiteSearchCommand(cxt, parameters);
         } else if (config instanceof WebSearchConfiguration) {
@@ -72,5 +76,4 @@
         } 
         throw new UnsupportedOperationException("Cannot find suitable command 
for " + config.getName());
     }
-
 }

Modified: 
trunk/src/java/no/schibstedsok/front/searchportal/query/token/TokenPredicate.java
===================================================================
--- 
trunk/src/java/no/schibstedsok/front/searchportal/query/token/TokenPredicate.java
   2006-04-04 17:56:23 UTC (rev 2707)
+++ 
trunk/src/java/no/schibstedsok/front/searchportal/query/token/TokenPredicate.java
   2006-04-04 20:14:08 UTC (rev 2708)
@@ -50,6 +50,10 @@
     CELEBRITY (Type.FAST, "kjendiser"),
     ANIMAL (Type.FAST, "dyr"),
     DISEASE (Type.FAST, "sykdommer"),
+    STOCKMARKETTICKERS (Type.FAST, "stockmarkettickers"),
+    STOCKMARKEFIRMS (Type.FAST, "stockmarketfirms"),
+    EXACT_STOCKMARKETTICKERS (Type.FAST, "exact_stockmarkettickers"),
+    EXACT_STOCKMARKETFIRMS (Type.FAST, "exact_stockmarketfirms"),
     
     // RegExp TokenPredicates -- magic words
     BOOK_MAGIC (Type.REGEX),

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

Reply via email to