# Benchmarking search performance with randomised queries

**URL:** <https://discuss.elastic.co/t/benchmarking-search-performance-with-randomised-queries/239388>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [July 1, 2020, 1:58am UTC](https://discuss.elastic.co/t/benchmarking-search-performance-with-randomised-queries/239388 "2020-07-01T01:58:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manud](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@manud](https://discuss.elastic.co/u/manud)\
**Post date:** [July 1, 2020, 1:58am UTC](https://discuss.elastic.co/t/benchmarking-search-performance-with-randomised-queries/239388/1 "2020-07-01T01:58:10Z")

</div>

I want to use Rally purely to benchmark search performance as is described [here](https://discuss.elastic.co/t/running-benchmarking-on-existing-index/114322/2).

In order to simulate realistic search conditions I'd like to vary my query during the search operation, for example if my operation looked like this:

```auto
{
  "challenge": {
    "name": "just-search",
    "schedule": [
      {
        "operation": {
          "operation-type": "search",
          "index": "_all",
          "body": {
            "query": {
              "match" : {
                "message" : {
                  "query" : "message1"
                }
              }
            }
          }
        },
        "warmup-iterations": 100,
        "iterations": 100,
        "target-throughput": 10
      }
    ]
  }
}

```

Am I able to change `message1` so that it changes between requests to avoid caching in my benchmarks?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![manud](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@manud](https://discuss.elastic.co/u/manud)\
**Post date:** [July 1, 2020, 2:18am UTC](https://discuss.elastic.co/t/benchmarking-search-performance-with-randomised-queries/239388/2 "2020-07-01T02:18:12Z")

</div>

Found my answer not long after posting.

[https://esrally. **readthedocs**.io/en/stable/adding\_tracks.html#custom-parameter-sources](https://esrally.readthedocs.io/en/stable/adding_tracks.html#custom-parameter-sources)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 29, 2020, 2:18am UTC](https://discuss.elastic.co/t/benchmarking-search-performance-with-randomised-queries/239388/3 "2020-07-29T02:18:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
