Problem when create index template

i have seen problem when create index template based endpoint /_index/c1s-template

  "error" : {
    "root_cause" : [
        "type" : "illegal_argument_exception",
        "reason" : "IOException while reading stopwords_path: /usr/share/elasticsearch/config/stopwords.txt"
    "type" : "illegal_argument_exception",
    "reason" : "IOException while reading stopwords_path: /usr/share/elasticsearch/config/stopwords.txt",
    "caused_by" : {
      "type" : "no_such_file_exception",
      "reason" : "/usr/share/elasticsearch/config/stopwords.txt"
  "status" : 400

i dont see stopword.txt file in path in docker
thanks for any help?


What is your exact query?
What is your Elasticsearch version? The output of GET /...

1 Like

hi. thanks. i use v7.17.13. i want to create template index with this json. but it faced above issue. can you help me?

Please format your code, logs or configuration files using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:


This is the icon to use if you are not using markdown format:

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

Please update your post and provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Have a look at the Elastic Stack and Solutions Help · Forums and Slack | Elastic page. It contains also lot of useful information on how to ask for help.

1 Like

yes. i'm sorry

What is the exact request you are sending?
If you could reproduce with a very simple example, that's even better.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.