Beispiel #1
0
        //products
        public dynamic Getall()
        {
            var obj = es.GetData <Products>("http://localhost:9200/products/_search/?pretty=true");

            return(obj);
        }
Beispiel #2
0
        public T GetByIndex <T>(string indexName) where T : new()
        {
            var jsondata = req.GetData <T>("http://localhost:9200/" + indexName + "/_search?pretty=true");

            return(jsondata);
        }