Class: ElasticClient
Hierarchy​
↳
ElasticClient
Implements​
Constructors​
constructor​
• new ElasticClient(http
, resourceGraphService
, logger
)
Parameters​
Name | Type |
---|---|
http | HttpClient |
resourceGraphService | ResourceGraphService |
logger | Logger |
Overrides​
Defined in​
libs/elastic/src/lib/services/elastic-client.service.ts:15
Properties​
apName​
• Abstract
apName: string
Defined in​
libs/elastic/src/lib/services/elastic-client.service.ts:13
baseUrl​
• Abstract
baseUrl: string
Inherited from​
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:11
http​
• Protected
http: HttpClient
Inherited from​
index​
• Abstract
index: string
Inherited from​
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:9
logger​
• Protected
logger: Logger
Inherited from​
resourceGraphService​
• Protected
resourceGraphService: ResourceGraphService
Methods​
getSearchUrl​
â–¸ Protected
getSearchUrl(): string
Returns​
string
Inherited from​
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:23
search​
â–¸ search<T
>(query
, options?
): Observable
<ElasticSearchResponse
<T
>>
Type parameters​
Name | Type |
---|---|
T | extends JsonModel |
Parameters​
Name | Type |
---|---|
query | Object |
options? | Object |
options.context? | HttpContext |
options.headers? | HttpHeaders | { [header: string]: string | string []; } |
options.observe? | "body" |
options.params? | HttpParams | { [param: string]: string | number | boolean | ReadonlyArray <string | number | boolean >; } |
options.reportProgress? | boolean |
options.responseType? | "json" |
options.withCredentials? | boolean |
Returns​
Observable
<ElasticSearchResponse
<T
>>
Implementation of​
Defined in​
libs/elastic/src/lib/services/elastic-client.service.ts:19
searchOne​
â–¸ searchOne<T
>(query
, options?
): Observable
<T
>
Type parameters​
Name | Type |
---|---|
T | extends JsonModel |
Parameters​
Name | Type |
---|---|
query | Object |
options? | Object |
options.context? | HttpContext |
options.headers? | HttpHeaders | { [header: string]: string | string []; } |
options.observe? | "body" |
options.params? | HttpParams | { [param: string]: string | number | boolean | ReadonlyArray <string | number | boolean >; } |
options.reportProgress? | boolean |
options.responseType? | "json" |
options.withCredentials? | boolean |
Returns​
Observable
<T
>
Implementation of​
Defined in​
libs/elastic/src/lib/services/elastic-client.service.ts:26
searchOneRaw​
â–¸ searchOneRaw<T
>(query
, options?
): Observable
<T
>
Type parameters​
Name | Type |
---|---|
T | ResourceGraphRaw |
Parameters​
Name | Type |
---|---|
query | Object |
options? | Object |
options.context? | HttpContext |
options.headers? | HttpHeaders | { [header: string]: string | string []; } |
options.observe? | "body" |
options.params? | HttpParams | { [param: string]: string | number | boolean | ReadonlyArray <string | number | boolean >; } |
options.reportProgress? | boolean |
options.responseType? | "json" |
options.withCredentials? | boolean |
Returns​
Observable
<T
>
Inherited from​
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:19
searchRaw​
â–¸ searchRaw<T
>(query
, options?
): Observable
<ElasticSearchResponse
<T
>>
Type parameters​
Name | Type |
---|---|
T | ResourceGraphRaw |
Parameters​
Name | Type |
---|---|
query | Object |
options? | Object |
options.context? | HttpContext |
options.headers? | HttpHeaders | { [header: string]: string | string []; } |
options.observe? | "body" |
options.params? | HttpParams | { [param: string]: string | number | boolean | ReadonlyArray <string | number | boolean >; } |
options.reportProgress? | boolean |
options.responseType? | "json" |
options.withCredentials? | boolean |
Returns​
Observable
<ElasticSearchResponse
<T
>>
Inherited from​
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:15