2.2.1.16
Jörg Prante 4 years ago
parent 539c77cbd4
commit 246b8c10cd

2
.gitignore vendored

@ -9,5 +9,7 @@
/.project /.project
/.gradle /.gradle
build build
out
plugins
*.iml *.iml
*~ *~

@ -1,4 +1,4 @@
# Elasticsearch Extras - Client # Elasticsearch Clients
image:https://api.travis-ci.org/xbib/content.svg[title="Build status", link="https://travis-ci.org/jprante/elasticsearch-extras-client/"] image:https://api.travis-ci.org/xbib/content.svg[title="Build status", link="https://travis-ci.org/jprante/elasticsearch-extras-client/"]
image:https://img.shields.io/sonar/http/nemo.sonarqube.com/org.xbib%3Aelasticsearch-extras-client/coverage.svg?style=flat-square[title="Coverage", link="https://sonarqube.com/dashboard/index?id=org.xbib%3Aelasticsearch-extras-client"] image:https://img.shields.io/sonar/http/nemo.sonarqube.com/org.xbib%3Aelasticsearch-extras-client/coverage.svg?style=flat-square[title="Coverage", link="https://sonarqube.com/dashboard/index?id=org.xbib%3Aelasticsearch-extras-client"]

@ -121,8 +121,9 @@ public interface ExtendedClient extends Flushable, Closeable {
* @param id the id * @param id the id
* @param source the source * @param source the source
* @return this * @return this
* @throws IOException if update fails
*/ */
ExtendedClient update(String index, String id, BytesReference source); ExtendedClient update(String index, String id, BytesReference source) throws IOException;
/** /**
* Update document. Use with precaution! Does not work in all cases. * Update document. Use with precaution! Does not work in all cases.
@ -170,7 +171,7 @@ public interface ExtendedClient extends Flushable, Closeable {
* @param index index * @param index index
* @param settings settings * @param settings settings
* @return this * @return this
* @throws IOException if settings/mapping is invalid or index creation fails * @throws IOException if settings is invalid or index creation fails
*/ */
ExtendedClient newIndex(String index, Settings settings) throws IOException; ExtendedClient newIndex(String index, Settings settings) throws IOException;
@ -185,6 +186,15 @@ public interface ExtendedClient extends Flushable, Closeable {
*/ */
ExtendedClient newIndex(String index, Settings settings, String mapping) throws IOException; ExtendedClient newIndex(String index, Settings settings, String mapping) throws IOException;
/**
* Create a new index.
*
* @param index index
* @param settings settings
* @param mapping mapping
* @return this
* @throws IOException if settings/mapping is invalid or index creation fails
*/
ExtendedClient newIndex(String index, Settings settings, XContentBuilder mapping) throws IOException; ExtendedClient newIndex(String index, Settings settings, XContentBuilder mapping) throws IOException;
/** /**

Loading…
Cancel
Save