ElasticClient.Get does not work or compile


(Dave K) #1

I’m having problems with a Get. Here’s the call:

// Get
var resGet = elastic.Get(g => g
.Id(firstId.ToString())
.Index(indexName));

Error is:

Cannot convert lambda expression to type ‘Nest.DocumentPath<ElasticSearchConsApp.BlogPost>’ because it is not a delegate.

Id: is a GUID so I converted to String which it “looks like” DocumentPath would resolve to.

Thank-you.

Dave Karnecki


(system) #2