Closed mwilliammyers closed 5 years ago
Ah yes, this is a limitation of the way the request parameters use builders right now. I'd like to just throw out the whole fluent_builder
thing that captures closures and just update a set of request parameters internally, then we won't need for them to be static.
Ahhh... Then could we make the Elasticsearch host URL available via RequestParams
or just get rid of it and use PreRequestParams
everywhere? I haven't really dug into what would be required to do that...
Closing in favor of #372
Currently the RequestParams parameter to the
.params_fluent()
closure is'static
. Does it need to be? I am trying to let a user setrefresh
via an API call and that makes it really tricky...I tried using the regular
.params()
method but then I have to pass in a URL...