Class: ElasticRawClient
Hierarchy​
ElasticRawClient↳
ElasticClient
Constructors​
constructor​
• new ElasticRawClient(http, logger)
Parameters​
| Name | Type |
|---|---|
http | HttpClient |
logger | Logger |
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:13
Properties​
baseUrl​
• Abstract baseUrl: string
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:11
http​
• Protected http: HttpClient
index​
• Abstract index: string
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:9
logger​
• Protected logger: Logger
Methods​
getSearchUrl​
â–¸ Protected getSearchUrl(): string
Returns​
string
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:23
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>
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>>
Defined in​
libs/elastic/src/lib/services/elastic-raw-client.service.ts:15