Hello,
I'm using nutch with Mysql.
I was debugging nutch and I noted that the function called "getFromMarkers"
from "WebPage.java" no returns me the value 'null' after DBUpdate. I check
it after execute the updateDB and I don't know why it returns me a value as
it is has to be deleted during de updateDB process... 
I think this is because the updater don't delete the values from de
database.
In fact, I "solved" the problem modifying two methods:

WepPage::
   public Utf8 getFromMarkers(Utf8 key) {
    if (markers == null) { return null; }
    
    if ( markers.get(key) != null && 
!markers.get(key).toString().equals("")){
        return markers.get(key);
    }else{
        return null;
    }
    
  }

And I changed this two lines from DbUpdateReducer to set the value in "".

193   page.getMarkers().put(new Utf8("_gnmrk_"), new Utf8(""));
194    page.getMarkers().put(new Utf8("_ftcmrk_"), new Utf8(""));
    
193   // Mark.GENERATE_MARK.removeMarkIfExist(page);
194   // Mark.FETCH_MARK.removeMarkIfExist(page);

Is this correct? have you ever seen this problem?

Thanks a lot



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Mysql-don-t-save-Markers-properly-tp4037310.html
Sent from the Nutch - User mailing list archive at Nabble.com.

Reply via email to