"Hadoop-Solr Lucidworks Project" retrieve input name-path
This worked for me :
hadoop jar solr-hadoop-job-2.2.5.jar com.lucidworks.hadoop.ingest.IngestJob -Dlww.commit.on.close=true -Dcom.lucidworks.hadoop.ingest.RegexIngestMapper.regex="\\w+" -Dcom.lucidworks.hadoop.ingest.RegexIngestMapper.groups_to_fields=0=match_ss -cls com.lucidworks.hadoop.ingest.RegexIngestMapper -c collection1 -i /path/* -s http://127.0.1.1:8983/solr -of com.lucidworks.hadoop.io.LWMapRedOutputFormat
Also see this for more info.
For the CSVIngestMapper
the file path is not currently added to any Solr field.
Feel free to create an issue in the repo. https://github.com/lucidworks/hadoop-solr
Also PRs are welcome
EDIT: (See https://github.com/lucidworks/hadoop-solr/issues/16 for the solution)