# Cannot create new Index in Elastic 6.5.1

**URL:** https://discuss.elastic.co/t/cannot-create-new-index-in-elastic-6-5-1/158177
**Category:** Elasticsearch
**Created:** [November 26, 2018, 12:26pm UTC](https://discuss.elastic.co/t/cannot-create-new-index-in-elastic-6-5-1/158177 "2018-11-26T12:26:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![afeef1915](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/afeef1915/32/38048_2.png) [@afeef1915](https://discuss.elastic.co/u/afeef1915)
#### Post date: [November 26, 2018, 12:26pm UTC](https://discuss.elastic.co/t/cannot-create-new-index-in-elastic-6-5-1/158177/1 "2018-11-26T12:26:21Z")

</div>

I m new bie in Elastic

I have issue in stack overlfow

> <https://stackoverflow.com/questions/53499325/indexrequest-is-not-supported-in-elastic-6-5>

cannot create crud (insert, update) using java and mysql.

i have taken help from article

> **[ElasticSearch Tutorial for Beginners](https://www.javacodegeeks.com/2018/03/elasticsearch-tutorial-beginners.html)**
>
> 1. Introduction
> In this example, we shall demonstrate how to make use of Elasticsearch, a distribut...

[https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-document-index.html#java-rest-high-document-index](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-high-document-index.html#java-rest-high-document-index)

can anyone tell why i cannot import these pkg in 6.5.1

import org.elasticsearch.ElasticsearchException;  
import org.elasticsearch.action.index.IndexRequest;  
import org.elasticsearch.action.index.IndexResponse;

Eclipse is giving error

The import org.elasticsearch.ElasticsearchException cannot be resolved

But in tutorial sample code is not mentioned,.

any suggestion most wlecome.

Another Solution i tried  
in pom,xml

 org.elasticsearch.action elasticsearch-index-request 6.5.1 compile 

but after compiling its giving error  
Missing artifact org.elasticsearch.action:elasticsearch-index-request:jar:6.5.1

can anyone suggest why IndexRequest package is not working in 6.5.1 pom.xml

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [December 24, 2018, 12:26pm UTC](https://discuss.elastic.co/t/cannot-create-new-index-in-elastic-6-5-1/158177/2 "2018-12-24T12:26:26Z")

</div>

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