[Search] Moving files

Moved the elasticsearch provider to
platform/persistence/elastic. Then moved
the search aggregator and the generic
provider into a services folder within
the search folder.
This commit is contained in:
slhale 2015-08-04 13:03:34 -07:00
parent 45bedb20c1
commit d9a1b9d530
11 changed files with 16 additions and 15 deletions

View File

@ -8,6 +8,12 @@
"type": "provider", "type": "provider",
"implementation": "ElasticPersistenceProvider.js", "implementation": "ElasticPersistenceProvider.js",
"depends": [ "$http", "$q", "PERSISTENCE_SPACE", "ELASTIC_ROOT", "ELASTIC_PATH" ] "depends": [ "$http", "$q", "PERSISTENCE_SPACE", "ELASTIC_ROOT", "ELASTIC_PATH" ]
},
{
"provides": "searchService",
"type": "provider",
"implementation": "ElasticSearchProvider.js",
"depends": [ "$http", "objectService", "ELASTIC_ROOT" ]
} }
], ],
"constants": [ "constants": [

View File

@ -22,7 +22,7 @@
/*global define*/ /*global define*/
/** /**
* Module defining ElasticsearchSearchProvider. Created by shale on 07/16/2015. * Module defining ElasticSearchProvider. Created by shale on 07/16/2015.
*/ */
define( define(
[], [],
@ -46,7 +46,7 @@ define(
* @param ROOT the constant ELASTIC_ROOT which allows us to * @param ROOT the constant ELASTIC_ROOT which allows us to
* interact with ElasticSearch. * interact with ElasticSearch.
*/ */
function ElasticsearchSearchProvider($http, objectService, ROOT) { function ElasticSearchProvider($http, objectService, ROOT) {
// Add the fuzziness operator to the search term // Add the fuzziness operator to the search term
function addFuzziness(searchTerm, editDistance) { function addFuzziness(searchTerm, editDistance) {
@ -207,6 +207,6 @@ define(
} }
return ElasticsearchSearchProvider; return ElasticSearchProvider;
} }
); );

View File

@ -25,8 +25,8 @@
* SearchSpec. Created by shale on 07/31/2015. * SearchSpec. Created by shale on 07/31/2015.
*/ */
define( define(
["../../src/providers/ElasticsearchSearchProvider"], ["../../src/providers/ElasticSearchProvider"],
function (ElasticsearchSearchProvider) { function (ElasticSearchProvider) {
"use strict"; "use strict";
// JSLint doesn't like underscore-prefixed properties, // JSLint doesn't like underscore-prefixed properties,

View File

@ -1,4 +1,5 @@
[ [
"ElasticIndicator", "ElasticIndicator",
"ElasticPersistenceProvider" "ElasticPersistenceProvider",
"ElasticSearchProvider"
] ]

View File

@ -31,26 +31,20 @@
{ {
"provides": "searchService", "provides": "searchService",
"type": "provider", "type": "provider",
"implementation": "providers/GenericSearchProvider.js", "implementation": "services/GenericSearchProvider.js",
"depends": [ "$q", "objectService", "workerService", "roots[]" ] "depends": [ "$q", "objectService", "workerService", "roots[]" ]
}, },
{
"provides": "searchService",
"type": "provider",
"implementation": "providers/ElasticsearchSearchProvider.js",
"depends": [ "$http", "objectService", "ELASTIC_ROOT" ]
},
{ {
"provides": "searchService", "provides": "searchService",
"type": "aggregator", "type": "aggregator",
"implementation": "SearchAggregator.js", "implementation": "services/SearchAggregator.js",
"depends": [ "$q" ] "depends": [ "$q" ]
} }
], ],
"workers": [ "workers": [
{ {
"key": "genericSearchWorker", "key": "genericSearchWorker",
"scriptUrl": "workers/GenericSearchWorker.js", "scriptUrl": "services/GenericSearchWorker.js",
"depends": [ "objectService" ] "depends": [ "objectService" ]
} }
] ]