mirror of
https://github.com/nasa/openmct.git
synced 2025-01-10 23:12:57 +00:00
92df11acc1
Previously had removed the elasticsearch provider from bundle.json so could work on the generic search web worker. Now have modified the elasticsearch provider to match the new interface with the aggregator, and it works. At this point, search is 'working'
67 lines
2.1 KiB
JSON
67 lines
2.1 KiB
JSON
{
|
|
"name": "Search View",
|
|
"description": "Allows the user to search through the file tree.",
|
|
"extensions": {
|
|
"views": [
|
|
{
|
|
"key": "search",
|
|
"name": "Search",
|
|
"glyph": "5",
|
|
"description": "Search functionality.",
|
|
"templateUrl": "templates/search.html"
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "SearchController",
|
|
"implementation": "controllers/SearchController.js",
|
|
"depends": [ "$scope", "$timeout", "searchService" ]
|
|
},
|
|
{
|
|
"key": "SearchbarController",
|
|
"implementation": "controllers/SearchbarController.js",
|
|
"depends": [ "$scope", "searchService" ]
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "searchbar",
|
|
"templateUrl": "templates/searchbar.html",
|
|
"uses": [ "composition" ]
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "searchbar-item",
|
|
"templateUrl": "templates/searchbar-item.html",
|
|
"uses": [ "composition" ]
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "providers/GenericSearchProvider.js",
|
|
"depends": [ "$rootScope", "objectService", "workerService" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "provider",
|
|
"implementation": "providers/ElasticsearchSearchProvider.js",
|
|
"depends": [ "$http", "objectService", "ELASTIC_ROOT" ]
|
|
},
|
|
{
|
|
"provides": "searchService",
|
|
"type": "aggregator",
|
|
"implementation": "SearchAggregator.js"
|
|
}
|
|
],
|
|
"workers": [
|
|
{
|
|
"key": "genericSearchWorker",
|
|
"scriptUrl": "workers/GenericSearchWorker.js",
|
|
"depends": [ "objectService" ]
|
|
}
|
|
]
|
|
}
|
|
} |