On Thu, Jul 30, 2009 at 9:45 PM, Andrew Clegg<andrew.cl...@gmail.com> wrote: > > > Erik Hatcher wrote: >> >> >> On Jul 30, 2009, at 11:54 AM, Andrew Clegg wrote: >>> <entity dataSource="filesystem" name="domain_pdb" >>> url="${domain.pdb_code}-noatom.xml" processor="XPathEntityProcessor" >>> forEach="/"> >>> <field column="content" >>> xpath="//*[local-name()='structCategory']/*[local-name()='struct']/ >>> *[local-name()='title']" >>> /> >> >> The XPathEntityProcessor doesn't support that fancy of an xpath - it >> supports only a limited subset. Try /structCategory/struct/title >> perhaps? >> >> > > Sadly not... > > I tried with: > > <field column="content" > xpath="/datablock/structCategory/struct/title" /> > > (full path from root) > > and > > <field column="content" > xpath="//structCategory/struct/title" /> > > Same ArrayIndex error each time. > > Doesn't it use javax.xml then? I was using the complex local-name > expressions to make it namespace-agnostic -- is it agnostic anyway? it does not use javax.xml because those work on a DOM tree which is not usable for large xml files.
This only supports a subset of xpath. The supported syntax is given here http://wiki.apache.org/solr/DataImportHandler#head-5ced7c797f1014ef6e8326a34c23f541ebbaadf1-2 > > Thanks, > > Andrew. > > -- > View this message in context: > http://www.nabble.com/NullPointerException-in-DataImportHandler-tp24739580p24741696.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- ----------------------------------------------------- Noble Paul | Principal Engineer| AOL | http://aol.com