elasticsearch-store / test-helpers/elasticsearch
test-helpers/elasticsearch
Index
Interfaces
Interface | Description |
---|---|
TestENVClientInfo | - |
Variables
removeTypeTest
const
removeTypeTest:boolean
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:17
Functions
cleanupIndex()
cleanupIndex(
client
,index
,template
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
client | any |
index | string |
template ? | string |
Returns
Promise
<void
>
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:37
cleanupIndexStore()
cleanupIndexStore(
store
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
store | IndexStore <any > |
Returns
Promise
<void
>
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:164
createMappingFromDatatype()
createMappingFromDatatype(
client
,dataType
,type
,overrides
):any
Parameters
Parameter | Type | Default value |
---|---|---|
client | Client | undefined |
dataType | DataType | undefined |
type | string | '_doc' |
overrides | object | {} |
Returns
any
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:82
formatUploadData()
formatUploadData(
index
,data
,apiCompatibility
):Record
<string
,any
>[]
Parameters
Parameter | Type | Default value |
---|---|---|
index | string | undefined |
data | any [] | undefined |
apiCompatibility | boolean | false |
Returns
Record
<string
, any
>[]
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:137
getTestENVClientInfo()
getTestENVClientInfo():
TestENVClientInfo
Returns
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:213
getTotalFormat()
getTotalFormat(
distribution
,majorVersion
,n
):number
|object
Parameters
Parameter | Type |
---|---|
distribution | string |
majorVersion | number |
n | number |
Returns
number
| object
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:251
makeClient()
makeClient():
Promise
<Client
>
Returns
Promise
<Client
>
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:19
populateIndex()
populateIndex(
client
,index
,dataType
,records
,type
):Promise
<void
>
Parameters
Parameter | Type | Default value |
---|---|---|
client | Client | undefined |
index | string | undefined |
dataType | DataType | undefined |
records | any [] | undefined |
type | string | '_doc' |
Returns
Promise
<void
>
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:94
upload()
upload(
client
,queryBody
,data
):Promise
<Record
<string
,any
>>
Parameters
Parameter | Type |
---|---|
client | any |
queryBody | any |
data | any [] |
Returns
Promise
<Record
<string
, any
>>
Source
elasticsearch-store/src/test-helpers/elasticsearch.ts:69
waitForData()
waitForData(
client
,index
,count
,timeout
):Promise
<void
>
Parameters
Parameter | Type | Default value |
---|---|---|
client | any | undefined |
index | string | undefined |
count | number | undefined |
timeout | number | 5000 |
Returns
Promise
<void
>