Re: Solr-4.0.0 DIH not indexing xml attributes
Sorry guys, it had nothing to do with the DIH's ability to parse attributes. My xslt did not work with the DIH. I used xsltproc to test my xslt and it worked great. However the DIH xslt transformation failed. I was able to move some things around in the xslt to get things working. Not sure if the DIH can print out the XML file after xslt transformation, but that would have helped in debugging. There were a few errors in the log file which lead me to change the xslt file so in the end that was sufficient. As always thanks again for the response! Billy Sent from my iPhone On Oct 19, 2012, at 9:07 PM, Lance Norskog goks...@gmail.com wrote: 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 |
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
Re: Solr-4.0.0 DIH not indexing xml attributes
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 |
indexing xml attributes?
Hi, As I understand it the DIH XPathEntityProcessor will not allow me to index attributes - like so field column=ID xpath=/ARTIKEL/@ID / So if I want to index attributes I should pre-process the documents into the format that Solr indexes normally and place the value of the ID into a field? Thanks, Bryan Rasmussen
Re: indexing xml attributes?
Ah never mind, I had to restart my instance in order for my changes to the dataimporter to register. thanks, Bryan Rasmussen On Tue, May 17, 2011 at 12:19 PM, bryan rasmussen rasmussen.br...@gmail.com wrote: Hi, As I understand it the DIH XPathEntityProcessor will not allow me to index attributes - like so field column=ID xpath=/ARTIKEL/@ID / So if I want to index attributes I should pre-process the documents into the format that Solr indexes normally and place the value of the ID into a field? Thanks, Bryan Rasmussen