Esrally giving multiple search queries in the same track.json

Could we give multiple search queries in the same track.json
I want to give 2 queries which given below/ So I added it in several places in different ways to organize it . However, when I validate the .json , I get operation key is duplicated or json is invalid. Thank you.

{
"operation": {
"name": "term-search",
"operation-type": "search",
"body": {
"query": {
"term": {
"body": "Lago"
}
}
}
}

Example-2

{
"operation": {
"name": "query-match-all",
"operation-type": "search",
"body": {
"query": {
"match_all": {}
}
}

Hi! The name field should be in the task-level of the definition, not the operation-level:

{
  //here
  "name": "my-task",
  "operation": {
  // not here
  ...
  }
}

By default, the task will just use the operation name (search in your case) as the task name, which means that they get duplicated in your configuration.

As mentioned by @RickBoyd , please also make sure you've read this part of the documentation: Track Reference — Rally 2.2.1 documentation that describes the different elements including examples.

Thank you Rick and Dliappis, with your guidance I managed to solve the json errors and now the track.json is taken but it get finished within few seconds and seemed the test not ran. Below is the track.json that I used.

{
"version": 2,
"description": "Tutorial benchmark for Rally Search",
"indices": [{
"name": "customrecords",
"types": ["docs"]
}],
"schedule": [{
"operation": {
"operation-type": "cluster-health",
"request-params": {
"wait_for_status": "green"
}
}
}],
"operations": [{
"name": "term-search",
"operation-type": "search",
"body": {
"query": {
"term": {
"key_architecture": "RODSozpcCCyoYXIUPIsAVfnoubWyYNcMFpWtbQkXxUxEeiNGKa"
}
}
}
},
{
"name": "match-all-query",
"operation-type": "search",
"body": {
"query": {
"match_all": {}
}
}
}
],
"clients": 8,
"warmup-iterations": 100,
"iterations": 5000,
"target-throughput": 20
}

Below code is tested and passed and solved my need . Thank you all for the generous support and no further action is needed.

{
"version": 2,
"description": "Tutorial benchmark for Rally Search",
"indices": [
{
"name": "customrecords",
"types": [
"docs"
]
}
],
"schedule": [
{
"operation": {
"operation-type": "cluster-health",
"request-params": {
"wait_for_status": "green"
}
}
},
{
"operation": {
"name": "term-search",
"operation-type": "search",
"body": {
"query": {
"term": {
"body": "Lago"
}
}
}
},
"clients": 4,
"warmup-iterations": 1000,
"iterations": 6000,
"target-throughput": 100
},
{
"operation": {
"name": "match-all-query",
"operation-type": "search",
"body": {
"query": {
"match_all": {}
}
}
},
"clients": 4,
"warmup-iterations": 1000,
"iterations": 6000,
"target-throughput": 100
}
]
}