forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow search templates stored in an index to be retrieved and used at…
… search time This change allows search templates stored in an index to be used at search time. You can run an indexed template by GET /_search/template { 'templatename' : '/index/language/id', 'params' : { 'param1' : 'foo' } } Running the template will fail if the template cannot be found, if the templatename starts with a '/' but does not conform to the /index/type/id triple If the named template cannot be found an error will be raised. Currently the templates are NOT cached. We also use TransportGetAction directly instead of using Client to avoid a circular dependency between Client and ScriptService See elastic#5637
- Loading branch information
Showing
2 changed files
with
191 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters