Skip to content

Commit

Permalink
Provide sort query with int field type in http_logs (opensearch-proje…
Browse files Browse the repository at this point in the history
  • Loading branch information
gashutos authored and gkamat committed Nov 18, 2023
1 parent 6c832f0 commit 144c84c
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
26 changes: 26 additions & 0 deletions http_logs/operations/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,32 @@
}
}
},
{
"name": "desc_sort_size",
"operation-type": "search",
"index": "logs-*",
"body": {
"query": {
"match_all": {}
},
"sort" : [
{"size" : "desc"}
]
}
},
{
"name": "asc_sort_size",
"operation-type": "search",
"index": "logs-*",
"body": {
"query": {
"match_all": {}
},
"sort" : [
{"size" : "asc"}
]
}
},
{
"name": "desc_sort_timestamp",
"operation-type": "search",
Expand Down
56 changes: 56 additions & 0 deletions http_logs/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,34 @@
"#COMMENT": "Throughput is considered per request. So we issue one scroll request per second which will retrieve 25 pages",
"target-throughput": 1
},
{
"operation": "desc_sort_size",
"warmup-iterations": 200,
"iterations": 100
{%- if not target_throughput %}
,"target-throughput": 0.5
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%-if search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
},
{
"operation": "asc_sort_size",
"warmup-iterations": 200,
"iterations": 100
{%- if not target_throughput %}
,"target-throughput": 0.5
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%-if search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
},
{
"operation": "desc_sort_timestamp",
"warmup-iterations": 200,
Expand Down Expand Up @@ -454,6 +482,34 @@
"#COMMENT": "Throughput is considered per request. So we issue one scroll request per second which will retrieve 25 pages",
"target-throughput": 1
},
{
"operation": "desc_sort_size",
"warmup-iterations": 200,
"iterations": 100
{%- if not target_throughput %}
,"target-throughput": 0.5
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%-if search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
},
{
"operation": "asc_sort_size",
"warmup-iterations": 200,
"iterations": 100
{%- if not target_throughput %}
,"target-throughput": 0.5
{%- elif target_throughput is string and target_throughput.lower() == 'none' %}
{%- else %}
,"target-throughput": {{ target_throughput | tojson }}
{%- endif %}
{%-if search_clients is defined and search_clients %}
,"clients": {{ search_clients | tojson}}
{%- endif %}
},
{
"operation": "desc_sort_timestamp",
"warmup-iterations": 200,
Expand Down

0 comments on commit 144c84c

Please sign in to comment.