Further investigation shows that DbUpdateReducer
calls
inlinkedScoreData.clear();
and it calls this function
public void readFields(DataInput in) throws IOException {
System.out.println("readFields in score datum is called");
score = in.readFloat();
url = Text.readString(in);
anchor = Text.readString(in);
distance = WritableUtils.readVInt(in);
metaData.clear();
int size = WritableUtils.readVInt(in);
for (int i = 0; i < size; i++) {
String key = Text.readString(in);
byte[] value = Bytes.readByteArray(in);
metaData.put(key, value);
}
}
of ScoreDatum class.
And metaData.clear(); line clears all metadata.
Why metaData.clear(); line is needed in this function?
Thanks.
Alex.
--
View this message in context:
http://lucene.472066.n3.nabble.com/updatedb-deletes-all-metadata-except-csh-tp4142158p4142184.html
Sent from the Nutch - User mailing list archive at Nabble.com.