Skip to content

Commit

Permalink
Merge branch 'master' into use-listeners-to-manage-cache-files-for-re…
Browse files Browse the repository at this point in the history
…moved-shards
  • Loading branch information
tlrx committed Dec 10, 2020
2 parents aeeabc7 + 5fe7b7f commit 6c1a6e9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/reference/search/rank-eval.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,28 @@ GET /my-index-000001/_rank_eval
<3> a reference to a previously defined template
<4> the parameters to use to fill the template

It is also possible to use <<pre-registered-templates,templates already stored>> in the cluster state by referencing their id in the templates section.

[source,js]
--------------------------------
GET /my_index/_rank_eval
{
[...]
"templates": [
{
"id": "match_one_field_query", <1>
"template": { <2>
"id": "match_one_field_query"
}
}
],
"requests": [...]
}
--------------------------------
// NOTCONSOLE

<1> the template id used for requests
<2> the template id stored in the cluster state

===== Available evaluation metrics

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ private static void validateDynamicTemplate(Mapper.TypeParser.ParserContext pars
(name, mapping) -> typeParser.parse(name, mapping, parserContext).build(new ContentPath(1)));
}
dynamicTemplateInvalid = false;
break;
} catch(Exception e) {
lastError = e;
}
Expand Down

0 comments on commit 6c1a6e9

Please sign in to comment.