Which is faster GetAsync or SearchAsync in elastic search NEST?

 var response = elasticClient
                    .SearchAsync<item>(a => a
                        .Query(q => q
                            .Match(p => p.Field("Id").Query(id.ToString()))));
                var responseTook = response.Result.Took;


var response1 = elasticClient.GetAsync<item>(id);

Get by id is faster and real time.
Search is not real time. Your document might not be found even if you just indexed it.


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.