Solr DataImportHandler: Can I get a dynamic field name from xml attribute with XPathEntityProcessor?
问题 I have some XML to ingest into Solr, which sounds like a use case that is intended to be solved by the DataImportHandler. What I want to do is pull the column name from one XML attribute and the value from another attribute. Here is an example of what I mean: <document> <data ref="reference.foo"> <value>bar</value> </data> </document> From this xml snippet, I want to add a field with name reference.foo and value bar . The DataImportHandler includes a XPathEntityProcessor for processing XML