New to ElasticSearch. I've seen a couple posts with similar titles but didn't seem to apply to me. I'm having trouble querying my ES cluster for the first time. Someone else creaed the cluster and gave me login info.
My code looks like this:
var settings = new ConnectionSettings(new Uri("server")) .BasicAuthentication("user", "pw") .DefaultIndex("index"); var client = new ElasticClient(settings); var searchResponse = client.Search<mdl.Event>(s => s .Query(q => q .QueryString(qs => qs .Query("Hello")) && q .DateRange(r => r .Field(f => f.CreatedTimeStamp) .GreaterThanOrEquals(search.From) .LessThanOrEquals(search.To)))); Console.Write(searchResponse);
I am getting no errors with this code. Only when I have the Console.Write statement I included do I get any detail. It reads:
Invalid NEST response built from a unsuccessful () low level call on POST: /index/_search?typed_keys=true
I'm not sure what is going wrong here. Is there an issue with the index or a quick fix to this issue?