# Elasticsearch java high level client does not allow custom schema creation

**URL:** https://discuss.elastic.co/t/elasticsearch-java-high-level-client-does-not-allow-custom-schema-creation/106106
**Category:** Elasticsearch
**Created:** [November 1, 2017, 10:50pm UTC](https://discuss.elastic.co/t/elasticsearch-java-high-level-client-does-not-allow-custom-schema-creation/106106 "2017-11-01T22:50:58Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dhavalk123](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dhavalk123/32/63294_2.png) [@dhavalk123](https://discuss.elastic.co/u/dhavalk123)
#### Post date: [November 1, 2017, 10:50pm UTC](https://discuss.elastic.co/t/elasticsearch-java-high-level-client-does-not-allow-custom-schema-creation/106106/1 "2017-11-01T22:50:58Z")

</div>

Is there any way to create a custom index schema using a java high level client?

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [November 1, 2017, 11:05pm UTC](https://discuss.elastic.co/t/elasticsearch-java-high-level-client-does-not-allow-custom-schema-creation/106106/2 "2017-11-01T23:05:19Z")

</div>

You need to use the low level part for this for now. Here is how I'm doing that for now:

> <https://github.com/dadoonet/fscrawler/blob/master/src/main/java/fr/pilato/elasticsearch/crawler/fs/client/ElasticsearchClient.java#L82-L105>

The create index API is not yet part of the HL Client. See

> <https://github.com/elastic/elasticsearch/issues/27205>

---

<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: [November 29, 2017, 11:05pm UTC](https://discuss.elastic.co/t/elasticsearch-java-high-level-client-does-not-allow-custom-schema-creation/106106/3 "2017-11-29T23:05:31Z")

</div>

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