Author: gttersen
Date: 2007-05-03 20:55:08 +0200 (Thu, 03 May 2007)
New Revision: 4992
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsEspSearchCommand.java
Log:
newsAggregator fixes
Modified:
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsEspSearchCommand.java
===================================================================
---
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsEspSearchCommand.java
2007-05-03 14:21:42 UTC (rev 4991)
+++
branches/2.12/core-api/src/main/java/no/schibstedsok/searchportal/mode/command/NewsEspSearchCommand.java
2007-05-03 18:55:08 UTC (rev 4992)
@@ -75,10 +75,10 @@
if (getQuery().getRootClause() == clause) {
NewsEspCommandConfig config = getSearchConfiguration();
String medium = (String)
datamodel.getJunkYard().getValue(config.getMediumParameter());
+ if (medium == null || medium.length() == 0) {
+ medium = config.getDefaultMedium();
+ }
if (!NewsEspCommandConfig.ALL_MEDIUMS.equals(medium) &&
getQueryRepresentationLength() > 0) {
- if (medium == null || medium.length() == 0) {
- medium = config.getDefaultMedium();
- }
insertToQueryRepresentation(0, "and(");
appendToQueryRepresentation(',');
appendToQueryRepresentation(config.getMediumPrefix());
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits