mirror of https://github.com/apache/lucene.git
SOLR-1391 The XPath field in the XPathEntityResolver should use the resolver to replace possible tokens
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@808759 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
657d48a7ea
commit
89b87c32d2
|
@ -126,8 +126,10 @@ public class XPathEntityProcessor extends EntityProcessorBase {
|
|||
if ("true".equals(field.get("flatten"))) {
|
||||
flags = XPathRecordReader.FLATTEN;
|
||||
}
|
||||
String xpath = field.get(XPATH);
|
||||
xpath = resolver.replaceTokens(xpath);
|
||||
xpathReader.addField(field.get(DataImporter.COLUMN),
|
||||
field.get(XPATH),
|
||||
xpath,
|
||||
Boolean.parseBoolean(field.get(DataImporter.MULTI_VALUED)),
|
||||
flags);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue