cosmetic
This commit is contained in:
parent
539c77cbd4
commit
246b8c10cd
3 changed files with 15 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -9,5 +9,7 @@
|
|||
/.project
|
||||
/.gradle
|
||||
build
|
||||
out
|
||||
plugins
|
||||
*.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://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 source the source
|
||||
* @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.
|
||||
|
@ -170,7 +171,7 @@ public interface ExtendedClient extends Flushable, Closeable {
|
|||
* @param index index
|
||||
* @param settings settings
|
||||
* @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;
|
||||
|
||||
|
@ -185,6 +186,15 @@ public interface ExtendedClient extends Flushable, Closeable {
|
|||
*/
|
||||
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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue