New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Explain Usage

edit

Enables explanation for each hit on how its score was computed.

See the Elasticsearch documentation on Explain for more detail.

Fluent DSL example

edit
s => s
.Explain()

Object Initializer syntax example

edit
new SearchRequest<Project> { Explain = true }

Example json output.

{
  "explain": true
}
Was this helpful?
Feedback