Skip to main content

Class: ElasticClient

Hierarchy​

Implements​

Constructors​

constructor​

• new ElasticClient(http, resourceGraphService, logger)

Parameters​

NameType
httpHttpClient
resourceGraphServiceResourceGraphService
loggerLogger

Overrides​

ElasticRawClient.constructor

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​

ElasticRawClient.baseUrl

Defined in​

libs/elastic/src/lib/services/elastic-raw-client.service.ts:11


http​

• Protected http: HttpClient

Inherited from​

ElasticRawClient.http


index​

• Abstract index: string

Inherited from​

ElasticRawClient.index

Defined in​

libs/elastic/src/lib/services/elastic-raw-client.service.ts:9


logger​

• Protected logger: Logger

Inherited from​

ElasticRawClient.logger


resourceGraphService​

• Protected resourceGraphService: ResourceGraphService

Methods​

getSearchUrl​

â–¸ Protected getSearchUrl(): string

Returns​

string

Inherited from​

ElasticRawClient.getSearchUrl

Defined in​

libs/elastic/src/lib/services/elastic-raw-client.service.ts:23


â–¸ search<T>(query, options?): Observable<ElasticSearchResponse<T>>

Type parameters​

NameType
Textends JsonModel

Parameters​

NameType
queryObject
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​

IElasticClient.search

Defined in​

libs/elastic/src/lib/services/elastic-client.service.ts:19


searchOne​

â–¸ searchOne<T>(query, options?): Observable<T>

Type parameters​

NameType
Textends JsonModel

Parameters​

NameType
queryObject
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​

IElasticClient.searchOne

Defined in​

libs/elastic/src/lib/services/elastic-client.service.ts:26


searchOneRaw​

â–¸ searchOneRaw<T>(query, options?): Observable<T>

Type parameters​

NameType
TResourceGraphRaw

Parameters​

NameType
queryObject
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​

ElasticRawClient.searchOneRaw

Defined in​

libs/elastic/src/lib/services/elastic-raw-client.service.ts:19


searchRaw​

â–¸ searchRaw<T>(query, options?): Observable<ElasticSearchResponse<T>>

Type parameters​

NameType
TResourceGraphRaw

Parameters​

NameType
queryObject
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​

ElasticRawClient.searchRaw

Defined in​

libs/elastic/src/lib/services/elastic-raw-client.service.ts:15