lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aneuryzma <>
Subject Digester / Lucene: How to make the XML parser more filexible ?
Date Fri, 25 Feb 2011 08:54:47 GMT

I'm using Apache Commons Digester together with Lucene to index a xml
collection. Some fields in the colleciton are not always available. See


I'm now wondering how to avoid to get a NullPointerException but only
execute the following lines if the geo tag is available...

    digester.addCallMethod("collection/doc/geo/latitude",    "setLatitude",
"setLongitude", 0);


View this message in context:
Sent from the Lucene - General mailing list archive at

View raw message