Do other fields get added? Do these fields have type problems? I.e. is 'attr1' a number and you are adding a string? There is a logging EP that I think shows the data found- I don't know how to use it. Is it possible to post the whole DIH script?
----- Original Message ----- | From: "Billy Newman" <newman...@gmail.com> | To: solr-user@lucene.apache.org | Sent: Friday, October 19, 2012 9:06:08 AM | Subject: Solr-4.0.0 DIH not indexing xml attributes | | Hello all, | | I am having problems indexing xml attributes using the DIH. | | I have the following xml: | | <root> | <Stuff attr1="some attr" attr2="another attr> | ... | </Stuff> | </root> | | I am using the following XPath for my fields: | <field column="attr1" xpath="/root/Stuff/@attr1" /> | <field column="attr2" xpath="/root/Stuff/@attr2" /> | | | However nothing is getting inserted into my index. | | I am pretty sure this should work so I have no idea what is wrong. | | Can anyone else confirm that this is a problem? Or is it just me? | | Thanks, | Billy |