If you click on the
Edit link next to the documentation example:
It'll take you to the GitHub page for the documentation, and in that page is a comment that links back to the source code from which the documentation was generated e.g. for the above page
This file has been generated from https://github.com/elastic/elasticsearch-net/tree/6.x/src/Tests/QueryDsl/Specialized/Script/ScriptQueryUsageTests.cs.
If you wish to submit a PR for any spelling mistakes, typos or grammatical errors for this file,
please modify the original csharp file found at the link and submit the PR with that change. Thanks!
In the ScriptQueryUsageTests.cs tests,
private static readonly string _templateString = "doc['numberOfCommits'].value > param1";
So you probably want something like
var response = client.Search<Question>(s => s
.Query(q => q
.Script(sq => sq
.Params(p => p