I am generating my own queries for a benchmark, my py code looks like this (adapted from some github repos I found):
class QueryParamSource:
def __init__(self, track, params, **kwargs):
...
def partition(self, partition_index, total_partitions):
...
return self
class ListingQueryParamSource(QueryParamSource):
def params(self):
...
result = {
"body": qbody,
"index": index_name,
"preference": '_local',
"invalid_param": 'invalid_Value',
"request_cache": 'true'
}
return result
I wanted to change some search request query params like 'preference', 'request_cache' etc. I thought adding them to the result dict would work.
But my benchmark numbers were not affected, so I was suspicious they are affecting the options I need, so I tried some invalid param (named invalid_param) and the benchmark run happily, so I guess this is not the way to change query parameters.
That helped a lot. I got logging configured, and that helped show some other underlying issue I had with some param not being passed all the way. I got caching working now.
Fantastic. As for the other things you'd like to try that are not top-level search parameters, see Track Reference - Rally 2.6.0 documentation. You would nest any other parameters you want from the Search API in the value of "request-params", e.g.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.