Fielddata Fields Usageedit
Allows to return the field data representation of a field for each hit.
Fluent DSL Exampleedit
s => s
.FielddataFields(fs => fs
.Field(p => p.Name)
.Field(p => p.LeadDeveloper)
.Field(p => p.StartedOn)
)Object Initializer Syntax Exampleedit
new SearchRequest<Project>
{
FielddataFields = new string [] { "name", "leadDeveloper", "startedOn" }
}Example json output.
{
"fielddata_fields": [
"name",
"leadDeveloper",
"startedOn"
]
}