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
search templates created with restapi are not deleteing completely #10397
Comments
@kumar007007 could you provide a simple curl recreation which demonstrates the issue please? |
// new index POST testindex/test // creating template with wrong type to create error POST _search/template/git01 // calling template it should error , it will give error GET testindex/_search/template // fixing the template error by updating right type // fixing the template error by deleting and recreating template POST _search/template/git01 GET testindex/_search/template |
Hi @kumar007007 Your example didn't actually work, but it gave me enough to demonstrate the problem: existing templates never get reparsed, even when they are overwritten:
|
@MaineC coule you look at this one too please? |
i have the same issue.. forcing us to resort to only managing templates from file and not index. |
Closes elastic#10397 When putting new templates to an index they are added to the cache of compiled templates as a side effect of the validate method. When updating templates they are also validated but the scripts that are already in the cache never get updated.
Closes elastic#10397 When putting new templates to an index they are added to the cache of compiled templates as a side effect of the validate method. When updating templates they are also validated but the scripts that are already in the cache never get updated.
Closes elastic#10397 When putting new templates to an index they are added to the cache of compiled templates as a side effect of the validate method. When updating templates they are also validated but the scripts that are already in the cache never get updated. As per comments on PR elastic#10526 adding more tests around updating scripts and templates.
Closes elastic#10397 When putting new templates to an index they are added to the cache of compiled templates as a side effect of the validate method. When updating templates they are also validated but the scripts that are already in the cache never get updated. As per comments on PR elastic#10526 adding more tests around updating scripts and templates.
…not-recompiled Closes #10397: Fix updating indexed search templates.
See elastic#10526 for more details.
We created a search templates with rest api will adds to .scripts index , when we delete the templete it says success and when we explore the index the templete won't appear .
When we recreate the search template with same name it will create , when we execute the template search it will take the old deleted template code . we updated to latest version 1.5 from 1.4.
You can easily replicate this issue ween u created a template with some wrong syntax , and delete that template and recreate with same name with valid syntax , then execute it wont work . I tried to flush cache on that index reorganize too
The text was updated successfully, but these errors were encountered: