Where did you get that configuration line from? The river functionality has been removed in Elasticsearch 2.0, which has been released in October 2015 almost seven years ago. So this kind of functionality does not exist anymore.
If you state your problem with some context around it instead of sharing snippets only, maybe there is another way to solve this issue.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.