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:
Noble Paul 2009-08-28 05:22:08 +00:00
parent 657d48a7ea
commit 89b87c32d2
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}