I'm trying to get highlights back from my searches using the code below. Despite trying all sorts of things the Highlights collection on the result is always empty.
Using ElasticSearch server 2.3.1 and NEST 2.3.0.
results = _client.Search<dynamic>( d =>
d.AllIndices()
.AllTypes()
.Query( q => q.QueryString( s => s.Query( query ) ) )
.Highlight(h =>
h.Fields( f =>
f.Field( "*" ).PreTags("<em>").PostTags("</em>")
)
)
);