I have a requirement to do a simultaneous multiple search query execution in 3 indices . So I defiend them in below track.json and added "index": "_all",
as per the answer of Can't configure multiple indices on which to run a benchmarkin RALLY
Problem is that now all the indices get searched , not just the 3 indices which I already defined. Kindly help. Here is my track.json
{
"version": 2,
"description": "Tutorial benchmark for Rally Search",
"indices": [
{
"name": "geocustom",
"types": [
"docs"
]
},
{
"name": "customrecords",
"types": [
"docs"
]
},
{
"name": "banks",
"types": [
"docs"
]
}
],
"schedule": [
{
"parallel": {
"clients": 4,
"warmup-iterations": 1000,
"iterations": 4000,
"tasks": [
{
"operation": {
"name": "01-term-search",
"index": "_all",
"operation-type": "search",
"body": {
"query": {
"term": {
"key_architecture": "RODSozpcCCyoYXIUPIsAVfnoubWyYNcMFpWtbQkXxUxEeiNGKa"
}
}
}
}
},
{
"operation": {
"index": "_all",
"name": "02-match-all-query",
"operation-type": "search",
"body": {
"query": {
"match_all": {}
}
}
}
},
{
"operation": {
"name": "03-past-sixtymins-query",
"index": "_all",
"operation-type": "search",
"body": {
"query": {
"bool": {
"filter": {
"range": {
"@timestamp": {
"gte": "now-90d",
"lte": "now"
}
}
}
}
}
}
}
},
{
"operation": {
"name": "04-must-query-with-time-filter",
"index": "_all",
"operation-type": "search",
"body": {
"query": {
"bool": {
"must": [
{
"match": {
"description.keyword": "desccrption 1034"
}
}
],
"filter": [
{
"range": {
"@timestamp": {
"gte": "now-90d",
"lte": "now"
}
}
}
]
}
}
}
}
},
{
"operation": {
"name": "05-String-query AND",
"index": "_all",
"operation-type": "search",
"body": {
"query": {
"query_string": {
"default_field": "key1",
"query": "sNYhzYdjkwjeVVunliSVMwxpaJAoDbpf",
"default_operator": "AND"
}
}
}
}
},
{
"operation": {
"name": "06-String-query-OR",
"index": "_all",
"operation-type": "search",
"body": {
"query": {
"query_string": {
"default_field": "key1",
"query": "700 701",
"default_operator": "OR"
}
}
}
}
}
]
}
}
]
}