[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",
"implementation": "ElasticPersistenceProvider.js",
"depends": [ "$http", "$q", "PERSISTENCE_SPACE", "ELASTIC_ROOT", "ELASTIC_PATH" ]
},
{
"provides": "searchService",
"type": "provider",
"implementation": "ElasticSearchProvider.js",
"depends": [ "$http", "objectService", "ELASTIC_ROOT" ]
}
],
"constants": [

View File

@ -22,7 +22,7 @@
/*global define*/
/**
* Module defining ElasticsearchSearchProvider. Created by shale on 07/16/2015.
* Module defining ElasticSearchProvider. Created by shale on 07/16/2015.
*/
define(
[],
@ -46,7 +46,7 @@ define(
* @param ROOT the constant ELASTIC_ROOT which allows us to
* interact with ElasticSearch.
*/
function ElasticsearchSearchProvider($http, objectService, ROOT) {
function ElasticSearchProvider($http, objectService, ROOT) {
// Add the fuzziness operator to the search term
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.
*/
define(
["../../src/providers/ElasticsearchSearchProvider"],
function (ElasticsearchSearchProvider) {
["../../src/providers/ElasticSearchProvider"],
function (ElasticSearchProvider) {
"use strict";
// JSLint doesn't like underscore-prefixed properties,

View File

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

View File

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