Browse files

use new version of capi-server, add welcome handler

  • Loading branch information...
1 parent 8b803d5 commit eca68ce5e73b65d95dc310422fccb7dfba5cd72e @mschoch mschoch committed Mar 31, 2014
View
2 pom.xml
@@ -34,7 +34,7 @@
<dependency>
<groupId>com.couchbase</groupId>
<artifactId>couchbase-capi-server</artifactId>
- <version>1.2.0</version>
+ <version>1.3.0-SNAPSHOT</version>
</dependency>
</dependencies>
View
7 src/main/java/org/elasticsearch/transport/couchbase/capi/ElasticSearchCAPIBehavior.java
@@ -85,6 +85,13 @@ public ElasticSearchCAPIBehavior(Client client, ESLogger logger, String defaultD
}
@Override
+ public Map<String, Object> welcome() {
+ Map<String, Object> responseMap = new HashMap<String, Object>();
+ responseMap.put("welcome", "elasticsearch-transport-couchbase");
+ return responseMap;
+ }
+
+ @Override
public boolean databaseExists(String database) {
String index = getElasticSearchIndexNameFromDatabase(database);
IndicesExistsRequestBuilder existsBuilder = client.admin().indices().prepareExists(index);

0 comments on commit eca68ce

Please sign in to comment.