mirror of https://github.com/apache/lucene.git
SOLR-6907, corrected patch, URLEncode documents directory in MorphlineMapperTest to handle spaces etc in file name
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1649455 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b5a484fe1f
commit
633fecf787
|
@ -48,7 +48,8 @@ public class MorphlineMapperTest extends MRUnitBase {
|
|||
setupHadoopConfig(config);
|
||||
|
||||
mapDriver.withInput(new LongWritable(0L), new Text("hdfs://localhost/" +
|
||||
URLEncoder.encode(DOCUMENTS_DIR, "UTF-8") + "/sample-statuses-20120906-141433.avro"));
|
||||
URLEncoder.encode(DOCUMENTS_DIR, "UTF-8").replace("+", "%20") +
|
||||
"/sample-statuses-20120906-141433.avro"));
|
||||
|
||||
SolrInputDocument sid = new SolrInputDocument();
|
||||
sid.addField("id", "uniqueid1");
|
||||
|
|
Loading…
Reference in New Issue