I am using esrally version 0.9.1, elasticsearch version 6.1.3
After executing the custom track for multiple indices, I can index documents for only oci-vcn
but not oci-user
(testing with the existing es-cluster)
How could I index the documents for all indices (both oci-vcn
, oci-user
) ?
This is the track.json
{
"name": "Sample track",
"indices": [
{
"name": "oci-user",
"auto-managed": false,
"body": "user-index.json",
"types": [ "oci-user" ]
},
{
"name": "oci-vcn",
"auto-managed": false,
"body": "vcn-index.json",
"types": [ "oci-vcn" ]
}
],
"corpora": [
{
"name": "oci-vcn",
"documents": [
{
"source-file": "documents.json",
"document-count": 1,
"target-type": "oci-vcn",
"target-index": "oci-vcn"
}
]
},
{
"name": "oci-user",
"documents": [
{
"source-file": "documents.json",
"document-count": 1,
"target-type": "oci-user",
"target-index": "oci-user"
}
]
}
],
"challenges": [
{
"name": "create-index",
"default": true,
"schedule": [
{
"operation": {
"operation-type": "delete-index"
}
},
{
"operation": {
"operation-type": "create-index"
}
},
{
"operation": {
"operation-type": "cluster-health",
"request-params": {
"wait-for-status": "green"
}
}
},
{
"operation": {
"operation-type": "bulk",
"bulk-size": 10
}
}
]
}
]
}
This is user-index.json
{
"settings": {
"number_of_replicas": 0
},
"mappings": {
"oci-user": {
"dynamic": "strict",
"properties": {
"name": {
"type": "text"
},
"age": {
"type": "integer"
},
"email": {
"type": "keyword"
}
}
}
}
}
This is vcn-index.json
{
"settings": {
"number_of_replicas": 0
},
"mappings": {
"oci-vcn": {
"dynamic": "strict",
"properties": {
"name": {
"type": "text"
}
}
}
}
}
This is oci-user/documents.json
{ "name": "Foo Bar", "age": 40, "email": "Foo@Bar.com" }
This is oci-vcn/documents.json
{ "name": "Foo Bar"}