Yes I am trying both and both are coming up empty. When I try to get the
value directly I get null (even though it matches what is stored according
to looking at the table in hbase shell, e.g., column=mtdt:h1,... for the
name "h1".
Here is what I use to check the metadata in the indexing filter - the
ByteBuffer returned is null, but when I directly retrieve the metadata is
not null but is empty, which I don't see how that is possible (I've checked
the HBase table after parsing and updating and before indexing and the
metadata field is definitely not empty).
ByteBuffer bb = page.getFromMetadata(new Utf8(targetField));
if (bb != null){
LOG.info("ByteBuffer retrieved: " + bb.toString());
}
Map<Utf8,ByteBuffer> metadata = (Map<Utf8,ByteBuffer>) page.get(22);
if(metadata==null){
LOG.info("metadata is null!");
} else{
LOG.info("metadata is not null, isempty: " + metadata.isEmpty() +"
size: "
+ metadata.size());
}
--
View this message in context:
http://lucene.472066.n3.nabble.com/Empty-webpage-metadata-in-IndexingFilter-but-not-empty-in-database-tp4086419p4086627.html
Sent from the Nutch - User mailing list archive at Nabble.com.