title: Trying to store and get some data using ElasticSearch
body: <p>I have this small configuration using ElasticSearch, but since i want to store some data , i am getting the error below: with <code>repository.save(new FileProperty(&quot;12dW&quot;, 123.123, &quot;hii&quot;));</code> P.S. the elasticSearch is runing on the port 9200 using docker</p>
  <pre><code>    Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.elasticsearch.UncategorizedElasticsearchException: Elasticsearch exception [type=illegal_argument_exception, reason=request [/index/_refresh] contains unrecognized parameter: [ignore_throttled]]; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=request [/index/_refresh] contains unrecognized parameter: [ignore_throttled]]]] with root cause
  
  org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_exception, reason=request [/index/_refresh] contains unrecognized parameter: [ignore_throttled]]
  </code></pre>
  <blockquote>
  <p>FileRepository.java</p>
  </blockquote>
  <pre><code>@Repository
  
  public interface FileRepository extends ElasticsearchRepository&lt;FileProperty, String&gt; {
  
      List&lt;FileProperty&gt; findByName(String filename);
  
  }
  </code></pre>
  <blockquote>
  <p>FileProperty.java</p>
  </blockquote>
  <pre><code>@Document(indexName = &quot;index&quot;, type = &quot;user&quot;, shards = 2)
  @Data
  @AllArgsConstructor
  @NoArgsConstructor
  public class FileProperty {
      @Id
      private String id;
      private double filesize;
      private String name;
  }
  </code></pre>
  <blockquote>
  <p>Config.java</p>
  </blockquote>
  <p>public class Config {</p>
  <pre><code>@Bean
  public RestHighLevelClient client() {
      ClientConfiguration clientConfiguration
              = ClientConfiguration.builder()
              .connectedTo(&quot;localhost:9200&quot;)
              .build();
  
      return RestClients.create(clientConfiguration).rest();
  }
  
  @Bean
  public ElasticsearchOperations elasticsearchTemplate() {
      return new ElasticsearchRestTemplate(client());
  }
  </code></pre>
  <p>}</p>
  <blockquote>
  <p>application.yml</p>
  </blockquote>
  <pre><code>      # Local Elasticsearch config
          spring.data.elasticsearch.repositories.enabled=true
          spring.data.elasticsearch.cluster-nodes=localhost:9200
          spring.data.elasticsearch.cluster-name=elasticsearch
          
          elasticsearch.index.name=index
          elasticsearch.user.type=user
  </code></pre>