mirror of
https://github.com/nasa/openmct.git
synced 2025-02-22 02:06:49 +00:00
[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:
parent
45bedb20c1
commit
d9a1b9d530
@ -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": [
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
);
|
);
|
@ -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,
|
@ -1,4 +1,5 @@
|
|||||||
[
|
[
|
||||||
"ElasticIndicator",
|
"ElasticIndicator",
|
||||||
"ElasticPersistenceProvider"
|
"ElasticPersistenceProvider",
|
||||||
|
"ElasticSearchProvider"
|
||||||
]
|
]
|
||||||
|
@ -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" ]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user