I\'m new to Nest, and I very likely am not creating my query like I think I am. My question is more along the lines of teach a man to fish rather than give me a fish. However,
Elasticsearch.Net and NEST: the .NET clients [7.x]
ref: https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/debug-information.html`
ref code
Var connectionPool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
var settings = new ConnectionSettings(connectionPool)
.DisableDirectStreaming(true);
var client = new ElasticClient(settings);
2.) var response = client.Search
3.)
var jsonOutput = System.Text.Encoding.UTF8.GetString(
result.ApiCall.RequestBodyInBytes);
Above can be achieved on a per request basis with following.
var response = client.Search(s => s
.RequestConfiguration(r => r
.DisableDirectStreaming()
)
.Query(q => q
.MatchAll()
)
);