WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Elasticsearch will send back
Warn HTTP Headers when you are using an API feature that is
deprecated and will be removed or rewritten in a future release.
Elasticsearch.NET and NEST report these back to you so you can log and watch out for them.
var response = this.Client.Search<Project>(s => s .FielddataFields(fd => fd .Field(p => p.State) .Field(p => p.NumberOfCommits) ) .ScriptFields(sfs => sfs .ScriptField("commit_factor", sf => sf .Inline("doc['numberOfCommits'].value * 2") .Lang("groovy") ) ) ); response.ApiCall.DeprecationWarnings.Should().NotBeNullOrEmpty(); response.DebugInformation.Should().Contain("Server indicated deprecations:");