From 1e332da11b85540fd2f62fe0ef836eea9c0e7372 Mon Sep 17 00:00:00 2001 From: Pete Richards Date: Mon, 24 Aug 2015 09:04:03 -0700 Subject: [PATCH] [Docs] ElasticSearch is not Couch --- platform/persistence/elastic/bundle.json | 4 ++-- platform/persistence/elastic/src/ElasticIndicator.js | 12 ++++++------ .../elastic/src/ElasticPersistenceProvider.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/platform/persistence/elastic/bundle.json b/platform/persistence/elastic/bundle.json index e7dfa1ab9d..8b9ba16fd4 100644 --- a/platform/persistence/elastic/bundle.json +++ b/platform/persistence/elastic/bundle.json @@ -1,6 +1,6 @@ { - "name": "Couch Persistence", - "description": "Adapter to read and write objects using a CouchDB instance.", + "name": "ElasticSearch Persistence", + "description": "Adapter to read and write objects using an ElasticSearch instance.", "extensions": { "components": [ { diff --git a/platform/persistence/elastic/src/ElasticIndicator.js b/platform/persistence/elastic/src/ElasticIndicator.js index 9eb87e70eb..78a29605c1 100644 --- a/platform/persistence/elastic/src/ElasticIndicator.js +++ b/platform/persistence/elastic/src/ElasticIndicator.js @@ -46,15 +46,15 @@ define( }; /** - * Indicator for the current CouchDB connection. Polls CouchDB - * at a regular interval (defined by bundle constants) to ensure - * that the database is available. + * Indicator for the current ElasticSearch connection. Polls + * ElasticSearch at a regular interval (defined by bundle constants) + * to ensure that the database is available. * @constructor * @memberof platform/persistence/elastic * @implements {Indicator} * @param $http Angular's $http service * @param $interval Angular's $interval service - * @param {string} path the URL to poll to check for couch availability + * @param {string} path the URL to poll for elasticsearch availability * @param {number} interval the interval, in milliseconds, to poll at */ function ElasticIndicator($http, $interval, path, interval) { @@ -63,7 +63,7 @@ define( this.state = PENDING; - // Callback if the HTTP request to Couch fails + // Callback if the HTTP request to ElasticSearch fails function handleError() { self.state = DISCONNECTED; } @@ -73,7 +73,7 @@ define( self.state = CONNECTED; } - // Try to connect to CouchDB, and update the indicator. + // Try to connect to ElasticSearch, and update the indicator. function updateIndicator() { $http.get(path).then(handleResponse, handleError); } diff --git a/platform/persistence/elastic/src/ElasticPersistenceProvider.js b/platform/persistence/elastic/src/ElasticPersistenceProvider.js index d70d6aa34f..c7d21ae81d 100644 --- a/platform/persistence/elastic/src/ElasticPersistenceProvider.js +++ b/platform/persistence/elastic/src/ElasticPersistenceProvider.js @@ -109,7 +109,7 @@ define( return this.$q.reject(error); }; - // Get a domain object model out of CouchDB's response + // Get a domain object model out of ElasticSearch's response function getModel(response) { if (response && response[SRC]) { this.revs[response[ID]] = response[REV];