示例#1
0
        public static Resp_Patents Patent_Query_Handle(IMultiSearchResponse response)
        {
            var resp_patent      = response.GetResponse <CompanyPatent>("patent");
            var resp_application = response.GetResponse <PatentApplicant>("application");
            var resp_designer    = response.GetResponse <PatentDesigner>("designer");

            return(Resp_Patents.Default);
        }
示例#2
0
        public async Task <IMultiSearchResponse> MultiSearch(MultiSearchDescriptor multiSearchDescriptor)
        {
            var result2 = Client.MultiSearch(ms => multiSearchDescriptor);

            IMultiSearchResponse result = null;

            result = await Client.MultiSearchAsync(ms => multiSearchDescriptor);

            if (!result.IsValid)
            {
                result.OriginalException.Throw("InvalidEsRequest", result.ServerError.ToString());
            }
            return(result);
        }