Why is elastic search client pointing to a different index while performing a search query

down vote
Im trying to do a search operation on ElasticSearch. But when i call the search query , the client is pointing to some other index(which i used previously).

this is how im doing my settings.

configvalue1 = ConfigurationManager.AppSettings["url"];
            var pool = new SingleNodeConnectionPool(new Uri(configvalue1));
            var defaultIndex = "abc";

            settings = new ConnectionSettings(pool);
            client = new ElasticClient(settings);

            if (client.IndexExists(defaultIndex).Exists)

            var createIndexResponse =

            return client;

Im using this client for some search operation.

var callResult = client.LowLevel.Search<string>(a);

When i check the callResult, Im getting a result from the documents that are indexed in a different index(for eg: zzz). Is there anything i have to do regarding this.