Description
`nutch index` help displays:
General options: ... -params k1=v1&k2=v2... parameters passed to indexer plugins (via property indexer.additional.params)
The option does nothing when used with CSV or dummy indexers. Looking at the code, the property is defined in:
which is only used in:
Several possibilities:
- Drop the parameter from the help. Does not break backward compatibility.
- Move the -params handling in IndexWriters.java and add them to IndexWriterParams of every indexer. Not too impactful but not super clean either: the parameters are not "namespaced" per indexer, if someone uses multiple indexers there may be parameter collisions.
- Refactor the way these parameters are passed, to prefix them with target indexer. Would break backward compatibility. In that case, it would be good to change the format completely: turn -params into -param, allow multiple values to be passed and forget the '=/&' syntax (which does not handle escaping anyway).
Not sure how much this parameter is used. I would have used it to configure the output path for indexer-csv or indexer-dummy.