objSearch.getresult returns null

UnitTestElasticsearchSample.Elasticsearch objSearch = new UnitTestElasticsearchSample.Elasticsearch();

<
objSearch.AddNewIndex(new City(1, "delhi", "delhi", "India", "9.879 million"));
objSearch.AddNewIndex(new City(2, "mumbai", "Maharashtra", "India", "11.98 million"));
objSearch.AddNewIndex(new City(3, "chenai", "Tamil Nadu", "India", "4.334 million"));
objSearch.AddNewIndex(new City(4, "kolkata", "W. Bengal", "India", "4.573 million"));
objSearch.AddNewIndex(new City(4, "Banglore", "Karnataka", "India", "4.302 million"));
objSearch.AddNewIndex(new City(4, "Pune", "Maharashtra", "India", "2.538 million"));
var test = objSearch.GetResult();
/>
why is test null?

    public Elasticsearch()
    {
        var uri = new Uri("http://localhost:9200");
        var settings = new ConnectionSettings(uri);
        client = new ElasticClient(settings);
        settings.DefaultIndex("city");
    }

it goes down on the indexexist("city")

is there a way to see what index's there are ?

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