Getting Parameters from Configuration


Would it make sense to have the capability to store parameter values in a configuration file (elasticsearch.yml or other)? This way we wouldn't need to be passing values explicitly, but instead rely on configured ones.

This could be implemented either having a special syntax for parameters, like:

"params": {
"mykey": "$configurationkey"

or something else:

"configParams": [ "mykey" ]

What do you think?


What's your vision here, what does this solve?

Hi, Mark!

IMO, It would make it easy to deploy and change configuration values. Yes, I know they can be stored in a client application as well, but this way it would make it easier to have multiple agnostic clients running queries with the same parameters (or, at least, default parameters), that admins could easily change.