Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

GaelTadh
Copy link
Contributor

Some cleanup to close issues around the indexed scripts API

This closes :
#7560
#7568
#7559
#7647
#7567


protected String getVersionFieldName() { return "_version"; }

protected String getLangFieldName() { return "lang"; }
Copy link
Contributor

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?

@s1monw
Copy link
Contributor

s1monw commented Sep 18, 2014

those are good cleanups - can we get them into 1.4 ? I think we should also add a simple BWC test for templates in a different PR

@GaelTadh
Copy link
Contributor Author

I created issue #7789 to track the BWC test for templates.

@s1monw
Copy link
Contributor

s1monw commented Sep 18, 2014

left some more comments

@s1monw s1monw removed the review label Sep 19, 2014
@s1monw
Copy link
Contributor

s1monw commented Sep 19, 2014

@GaelTadh I removed the review tag just FYI

@GaelTadh
Copy link
Contributor Author

I made the updates.

@s1monw
Copy link
Contributor

s1monw commented Sep 19, 2014

LGTM

@s1monw s1monw removed the review label Sep 19, 2014
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
@GaelTadh GaelTadh closed this Sep 19, 2014
@clintongormley clintongormley changed the title Indexedscript cleanup Indexed Scripts/Templates: Cleaned up various issues Sep 26, 2014
@clintongormley clintongormley changed the title Indexed Scripts/Templates: Cleaned up various issues Cleaned up various issues Jun 7, 2015
@clintongormley clintongormley added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache and removed :Indexed Scripts/Templates labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants