Author: ssolsagl
Date: 2007-05-09 15:28:02 +0200 (Wed, 09 May 2007)
New Revision: 5038
Modified:
trunk/core-api/src/main/java/no/schibstedsok/searchportal/result/BlogSearchResultItem.java
Log:
changed isFrontPage to check if we have hit in body or comment
Modified:
trunk/core-api/src/main/java/no/schibstedsok/searchportal/result/BlogSearchResultItem.java
===================================================================
---
trunk/core-api/src/main/java/no/schibstedsok/searchportal/result/BlogSearchResultItem.java
2007-05-09 13:11:11 UTC (rev 5037)
+++
trunk/core-api/src/main/java/no/schibstedsok/searchportal/result/BlogSearchResultItem.java
2007-05-09 13:28:02 UTC (rev 5038)
@@ -193,7 +193,9 @@
* @return if entry is blog frontpage.
*/
public boolean isFrontPage() {
-
+ if(isHitInBody() || isHitInComments()) {
+ return false;
+ }
if(parentUrl == null) {
return true;
}
_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits