Author: ssmiweve
Date: 2008-03-31 18:21:45 +0200 (Mon, 31 Mar 2008)
New Revision: 6322
Modified:
branches/2.16/generic.sesam/velocity-directives/src/main/java/no/sesat/search/view/velocity/AbstractEnrichmentDirective.java
Log:
SEARCH-4386 - AbstractEnrichmentDirective, if several enrichments have the same
score only the first is used
Modified:
branches/2.16/generic.sesam/velocity-directives/src/main/java/no/sesat/search/view/velocity/AbstractEnrichmentDirective.java
===================================================================
---
branches/2.16/generic.sesam/velocity-directives/src/main/java/no/sesat/search/view/velocity/AbstractEnrichmentDirective.java
2008-03-31 14:28:06 UTC (rev 6321)
+++
branches/2.16/generic.sesam/velocity-directives/src/main/java/no/sesat/search/view/velocity/AbstractEnrichmentDirective.java
2008-03-31 16:21:45 UTC (rev 6322)
@@ -123,7 +123,7 @@
// never return zero. in a treeset it means overriding the
other enrichment.
return 0 != result
? result
- :
String.CASE_INSENSITIVE_ORDER.compare(o1.getField(NAME), o2.getField(NAME));
+ :
String.CASE_INSENSITIVE_ORDER.compare(o1.getField(NAME_KEY),
o2.getField(NAME_KEY));
}
});
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits