I am using indexer-elastic-rest plugin. I was able to configure index name in the index-writers.xml and the indexing worked as expected. I have a requirement to change the index name on demand. So I tried to append index name to -params argument as shown below. That didn't seem to have any effect. I checked out the code but couldn't get into TaskAttemptContext to se how the params are copied in to context.configuration.
bin/nutch index crawl/crawldb -linkdb crawl/linkdb crawl/segments/* -params index=b
So in summary, is there a way to change the index name dynamically for indexer-elastic-rest plugin ?
This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.