New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleaned up various issues #7787
Conversation
|
||
protected String getVersionFieldName() { return "_version"; } | ||
|
||
protected String getLangFieldName() { return "lang"; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just use constants for this?
those are good cleanups - can we get them into |
I created issue #7789 to track the BWC test for templates. |
left some more comments |
@GaelTadh I removed the review tag just FYI |
I made the updates. |
LGTM |
This contains several cleanups to the indexed scripts. Remove the unused FetchSourceContext from the Get request.. Add lang,_version,_id to the REST GET API. Removes the routing from GetIndexedScriptRequest since the script index is a single shard that is replicated across all nodes. Fix backward compatible template file reference Before 1.3.0 on disk scripts could be referenced by requesting ```` _search/template { "template" : "ondiskscript" } ```` This was broken in 1.3.0 by requiring ```` { "template" : { "file" : "ondiskscript" } } ```` This commit restores the previous behavior. Remove support for preference, realtime and refresh These parameters don't make sense anymore for indexed scripts as we always force the preference to _local and always refresh after a Put to the indexed scripts index. Closes elastic#7568 Closes elastic#7559 Closes elastic#7647 Closes elastic#7567
c2e7e92
to
5c39645
Compare
Some cleanup to close issues around the indexed scripts API
This closes :
#7560
#7568
#7559
#7647
#7567