Exemplo n.º 1
0
        public object Get(TypeGetRequest request)
        {
            IOpenSearchableElasticType type = ecf.GetOpenSearchableElasticTypeByNameOrDefault(request.IndexName, request.TypeName);

            NameValueCollection parameters = new NameValueCollection();

            parameters.Set("uid", request.Id);

            return(OpenSearchService.Query(type, parameters));
        }
Exemplo n.º 2
0
        public object Get(TypeGetRequest request)
        {
            IOpenSearchableElasticType type = ecf.GetOpenSearchableElasticTypeByNameOrDefault(request.IndexName, request.TypeName);

            NameValueCollection parameters = new NameValueCollection();
            parameters.Set("uid", request.Id);

            return OpenSearchService.Query(type, parameters);
        }