nest

从微软到谷歌再到IBM:硅谷技术型CEO开始崛起

早过忘川 提交于 2020-02-26 07:45:10
  腾讯科技讯,据外媒报道,从微软的萨提亚-纳德拉(Satya Nadella)、Alphabet 旗下谷歌的桑德尔-皮查伊(Sundar Pichai)到 Adobe 的沙塔努-纳拉恩(Shantanu Narayen),再到今年 4 月开始履职的 IBM 新 CEO 阿尔温德-柯世纳(Arvind Krishna),硅谷技术型 CEO 已开始崛起。   这四名印度出生的技术型 CEO 现在掌舵着或将要掌舵硅谷领先的科技公司。除了皮查伊之外,其他人接替的都是非技术型 CEO 的班。随着这些公司经历中年危机,这些非技术型 CEO 给接班人留下了很多需要解决的棘手问题。但是,走马上任的纳德拉、皮查伊和纳拉恩均成功带领他们的公司走向了新的成功。而柯世纳则被视为带领 IBM 争夺云市场份额的最佳人选。    IBM 新 CEO 柯世纳   柯世纳是一名工程师,曾在印度理工学院接受培训,拥有约 15 项专利。他接替了 IBM CEO 罗睿兰(Ginni Rometty) 的职务,而罗睿兰以前曾从事销售和一般管理工作。尽管在威胁其传统业务的云计算时代,她因重组 IBM 的业务并使其变得更具相关性而获得了赞誉,但 IBM 目前的股价较她 2012 年接手时下跌了约 25%,而在此期间美国大盘上涨了逾 150%。   柯世纳被视为继续带领 IBM 争夺云市场份额的最佳人选。2018 年

CSS选择器的新用法

风格不统一 提交于 2020-02-09 01:35:39
现在,预处理器(如sass)似乎已经成为开发CSS的标配,正如几年前jQuery是开发JS的标配一样。JS的querySelector借鉴了jQuery的选择器思想,CSS选择器也借鉴了预处理器的变量定义、选择器嵌套、代码块重用等常用功能。本文将详细介绍CSS选择器的新用法 变量 一般地,我们在进行web开发时,会有一套变量定义规范,以sass为例,如下所示 // 颜色定义规范 $color-background : #222 $color-background-d : rgba(0, 0, 0, 0.3) $color-highlight-background : #333 //字体定义规范 $font-size-small : 12px $font-size-medium : 14px $font-size-large : 18px 而CSS变量的语法如下 【声明变量】 变量必须以 -- 开头。例如–example-variable: 20px,意思是将20px赋值给–example-varibale变量 可以将声明变量的语句置于任何元素内,如果要设置全局变量,则可以设置为:root、body或html :root{--bgColor:#000;} 变量声明就像普通的样式声明语句一样,也可以使用内联样式 <body style="--bgColor:#000"> 【使用变量】

Elasticsearch.Net and Timeouts

不打扰是莪最后的温柔 提交于 2020-02-03 08:52:32
问题 I have a 4 node elasticsearch cluster. I have a .net console application that is designed to fill the cluster with data which comes from sql. Everything works fine as long as I keep the rate of records being added (or deleted) fairly low. If I increase the number of threads eventually I will see timeout errors from my console app. The cluster has a total of 48 cores and the average time it takes to index a record is about .1 seconds. I have been able to get it to do about 7000 records

NEST Search whole document C# Elasticsearch

给你一囗甜甜゛ 提交于 2020-02-02 10:14:05
问题 I want to make a query over a million documents in Elasticsearch using Nest. My code: var response = client.Search<MyObject>(s => s .Index("test") .Type("one") .Query(q => q. Term( t => t.name, "A" ) ) .Size(10000) .Scroll("10m") .Pretty() ); My MyObject class: public class MyObject { public int id { get; set; } public int age { get; set; } public string lastname { get; set; } public string name { get; set; } } The problem is when this query is not found in the first 10k documents, it won't

Elastic search : Match query with analyzer is not working

这一生的挚爱 提交于 2020-01-25 20:29:14
问题 My goal is to search a word irrespective of the analyzer added to that. I used match query with keyword analyzer but i think it works with the default analyzer added to that property. In elastic search, my author document structure is like "_source": { "Id": 3, "Organization": "let123" } Index mapping : createIndexDescriptor.NumberOfReplicas(1) .NumberOfShards(1) .Settings( settings => settings .Add("analysis.filter.autocomplete_filter_ngram.type", "edge_ngram") .Add("analysis.filter

Why does my sorted nested ElasticSearch with custom analyzer using NEST return invalid result?

空扰寡人 提交于 2020-01-25 08:56:30
问题 Using elasticSearch v6.2.4 I want to sort my results based on user selection in the HMI. This is successful for most of the elements in my SearchableSituation but not for the member InvolvedVessels. I'm quite new to ES, and having read around I'm feeling a bit lost with all the possible variants of Querying and sorting etc.. Short version of the class: public class SearchableSituation : IEquatable<SearchableSituation> { //Other members public IEnumerable<SearchableInvolvedVessel>

C# Elasticsearch NEST cannot convert lambda expression

柔情痞子 提交于 2020-01-24 05:38:25
问题 I'm running into exactly the same problem described (and not answered) here ElasticSearch NEST Search I use: .NET Framework 4.5; ASP.NET MVC 5; Elasticsearch 1.6.0 (on a server); Elasticsearch.NET 1.6.1 NEST 1.6.1 I have an MVC controller which has two actions: Index - which contains HTML UI form Search - which contains Elasticsearch.NET client and a query. public ActionResult Search(SearchCreteria sc) { Settings settings = new Settings(); Client client = new Client(settings);

Limit field length when querying Elasticsearch

删除回忆录丶 提交于 2020-01-24 03:21:44
问题 Is there a way to limit a field to a certain number of characters when getting results from Elasticsearch? I know how to limit my results to a specific set of fields, but I don't see how to get just a piece of the data. I would like to receive just the first 100 characters to display a preview of data and limit I/O. I have seen that highlighting gives the option of setting a fragment size, but I am not necessarily querying for anything from the field I want a substring of. 回答1: Elasticsearch

ElasticSearch 2.0 Nest Unit Testing with MOQ

那年仲夏 提交于 2020-01-20 05:49:44
问题 I'm having problems creating Unit test for the search using ElasticSearch with Nest. Unit Test var mockSearchResponse = new Mock<ISearchResponse<Person>>(); mockSearchResponse.Setup(x => x.Documents).Returns(_people); var mockElasticClient = new Mock<IElasticClient>(); mockElasticClient.Setup(x => x.Search(It.IsAny<Func<SearchDescriptor<Person>, SearchRequest<Person>>>())).Returns(mockSearchResponse.Object); var service = new PersonService(mockElasticClient.Object); var result = service

Searching phone number object in Elasticsearch with C#

浪尽此生 提交于 2020-01-17 10:38:51
问题 I have an elasticsearch index that contains a phone number object with a contact document. The JSON is saved like this: "contactId": "fd71b8e0-c3dd-4861-a45d-6917fdb48038", "phone": { "country": "123", "area": "202", "number": "4567" }, "type": "business" The mapping that is used in this document for the phone object is in the form: , "phone": { "properties": { "area": { "type": "string" }, "country": { "type": "string" }, "number": { "type": "string" } } }, We're querying the index using a C