1app.service('searchService', function ($http, $rootScope) { 2 3 this.getKBSearchResults = function (searchTerm, callback) { 4 $http.get('../../api/Search/KBArticlesByTerm', { params: { term: searchTerm } }).then( 5 function (response) { 6 callback(response.data); 7 } 8 ); 9 }; 10 11 this.getWikiSearchResults = function (searchTerm, callback) { 12 $http.get('../../api/Search/WikiByTerm', { params: { term: searchTerm } }).then( 13 function (response) { 14 callback(response.data); 15 } 16 ); 17 }; 18 19 this.getTicketResults = function (searchTerm, callback) { 20 $http.get('../../api/Search/TicketsByTerm', { params: { term: searchTerm } }).then( 21 function (response) { 22 callback(response.data); 23 } 24 ); 25 }; 26});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.