IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Profile Usage
editProfile Usage
editThis functionality is experimental and may be changed or removed completely in a future release.
The Profile API provides detailed timing information about the execution of individual components in a query. It gives the user insight into how queries are executed at a low level so that the user can understand why certain queries are slow, and take steps to improve their slow queries.
The output from the Profile API is very verbose, especially for complicated queries executed across many shards. Pretty-printing the response is recommended to help understand the output
See the Elasticsearch documentation on Profile API for more detail.
Fluent DSL example
edits => s .Profile() .Query(q => q .Term(p => p.Name, Project.First.Name) )
Object Initializer syntax example
editnew SearchRequest<Project> { Profile = true, Query = new TermQuery { Field = "name", Value = Project.First.Name } }
Example json output.
{ "profile": true, "query": { "term": { "name": { "value": "Lesch Group" } } } }