ElasticSearch搜索不指定size 5C

使用es搜索不指定size默认返回10条数据,需求是返回所有符合条件的数据,肯定会
超过10条,这个问题不知道有没有遇到的,麻烦问一下,大家都是怎么解决这个问题的

3个回答

在json中加入size:num,指定返回条数

使用scroll分页返回

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
ElasticSearch搜索结果不正确

我用ES搭建了一个搜索引擎的demo,用IK做的分词,对内容做term查询,大部分情况下结果都是正确的,但是有时会查不出结果,比如说,我查“驻外记者”这个词,返回结果为0,但是我的文档库里肯定是有“驻外记者”出现的,我把文档导入到mysql中,用模糊查询是能返回结果的,ES里就没有,但是相同的情况比如我查“恐怖袭击”返回结果就是正确的,搞不清楚问题出在哪。头一次用ES,对这个工具不太熟悉,不知道有没有人遇到和我同样问题的?

如何使用ElasticSearch索引搜索单词的一部分

<div class="post-text" itemprop="text"> <p>I've recently started using ElasticSearch and I can't seem to make it search for a part of a word.</p> <p>Example: I have three documents from my couchdb indexed in ElasticSearch:</p> <pre><code>{ "_id" : "1", "name" : "John Doeman", "function" : "Janitor" } { "_id" : "2", "name" : "Jane Doewoman", "function" : "Teacher" } { "_id" : "3", "name" : "Jimmy Jackal", "function" : "Student" } </code></pre> <p>So now, I want to search for all documents containing "Doe"</p> <pre><code>curl http://localhost:9200/my_idx/my_type/_search?q=Doe </code></pre> <p>That doesn't return any hits. But if I search for</p> <pre><code>curl http://localhost:9200/my_idx/my_type/_search?q=Doeman </code></pre> <p>It does return one document (John Doeman).</p> <p>Am trying with this url <code>http://localhost/el/index.php?str=*doe*</code>.</p> <pre><code>&lt;?php require 'vendor/autoload.php'; $client = Elasticsearch\ClientBuilder::create()-&gt;build(); $params = array(); $params['index'] = 's3'; $params['type'] = 's3files'; $params['body']['query']['match']['content'] = $_GET['str']; $result = $client-&gt;search($params); echo "&lt;pre&gt;"; print_r($result); </code></pre> <p>How can I make ElasticSearch find both John Doeman and Jane Doewoman when I search for "Doe" ?</p> </div>

PHP Elasticsearch:通配符查询将找不到任何结果

<div class="post-text" itemprop="text"> <p>Im trying to use a wildcard for a specific column in my elasticsearch document. However, doing so, nothing happens. Elasticsearch doesn't find any results.</p> <p>Source: <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-wildcard-query.html</a></p> <p>How my search query looks like:</p> <pre><code>array:3 [ "index" =&gt; "certificates" "type" =&gt; "_doc" "body" =&gt; array:3 [ "from" =&gt; 0 "size" =&gt; 25 "query" =&gt; array:1 [ "wildcard" =&gt; array:1 [ "product_name" =&gt; array:1 [ "value" =&gt; "Fra*" ] ] ] ] ] </code></pre> <p>I don't see any difference to what the elasticsearch documentation recommends me.</p> <p><strong>PHP Version:</strong> 7.1.3</p> <p><strong>Elasticsearch version:</strong> 6.7.0</p> <p><strong>Response from elasticsearch when searching:</strong> </p> <pre><code>{ "took": 2, "timed_out": false, "_shards": { "total": 5, "successful": 5, "skipped": 0, "failed": 0 }, "hits": { "total": 0, "max_score": null, "hits": [] } } </code></pre> <p>Sample data inside of a document:</p> <p><a href="https://i.stack.imgur.com/chAY1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/chAY1.png" alt="enter image description here"></a></p> </div>

如何让grafana像sql一样展示elasticsearch数据源指定的字段数据?

在grafana展示elasticsearch数据源的数据时想指定展示某几列的具体信息。 想做出select id,name,age from table where … 这样的输出结果。 我在elasticsearch中的数据如下: POST aaaodt1002_20190830/doc/1 { "gettime": "2019-08-30 18:05:02.077", "machine":"SP1APA", "syscode": "AAA", "appcode": "CICS", "logtype":"LOG", "filename":"console.32101", "logdata":"ERZ024114E/0335 01/14/19 15:18:38.727701000 RGSIB1A 14680446/0001 : No user journals opened" } 数据类型gettime为Date,logdata为text,其他均为keyword 我在grafana中成功连接了数据源,然后设置Metric为Raw Document,Table Transform设置为JSON Data,但在Columns点击加号+是空,无法选择字段,是怎么回事?

ElasticSearch 两次查询得分不一样

ElasticSearch搜索,两台机器分别布了主节点和副节点,同样的搜索条件,得到的得分不一样,导致排序发生改变,请问是什么原因,如何解决?![图片说明](https://img-ask.csdn.net/upload/201612/16/1481871446_479676.png) 下次查询: ![图片说明](https://img-ask.csdn.net/upload/201612/16/1481871462_768901.png) 这两次查询结果会随机出现。

Elasticsearch java Client 分页时连接关闭问题

最近在做一个es 深度钻取功能,对源数据查询es默认分页时10条,于是做了一个分页界面,Client 写成单例模式了,每次返回时关闭client.close() 就会出现bug: NodeAvailableException[None of the configured nodes are available: [{#transport#-1}{192.168.170.69}{192.168.170.69:9300}]] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290) at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:207) at org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55) at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:288) at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:359) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:86) at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:56) ``` ``` 不关闭虽然用了同一个实例,避免了每次请求,新生成新的实例,但是考虑连接总要关闭的,不知道有没有好的解释和办法?

仅使用Elasticsearch选择特定字段

<div class="post-text" itemprop="text"> <p>I am trying to Get data with specific fields from an Index. I am using olivere elastic client. I tried the following code to select Bedrooms,rooms and location fields from property Index.</p> <pre><code> query := elastic.NewBoolQuery() query = query.Must(elastic.NewTermQuery("rooms", "1")) query = query.Must(elastic.NewTermQuery("bedrooms", "1")) get1, err := client.Search("Bedrooms", "rooms", "location"). Index("property"). //Type("doc"). Query(query). Sort("id", true). Size(5000). Do(ctx) if err != nil { // Handle error panic(err) } </code></pre> </div>

Elasticsearch搜索过滤重复数据问题

一张表存储帖子表,一张表存储用户已经看过的帖子的表, 如何使用ElasticSearch在查询帖子的时候,过滤掉用户已经浏览过的帖子???

ElasticSearch构建搜索引擎

如题,利用ElasticSearch构建搜索引之后,用户要搜索怎么对结果利用诸如PageRank之类的算法进行排序呢

elasticsearch使用IK分词搜索

我使用IK分词器,把搞笑分词为一个词语,只搜搞这个字怎么才能搜出来,大家有遇到这个问题的吗?

Elasticsearch怎么在项目/业务中使用?

这两天在学Elasticsearch,有个疑惑: ....... 一开始我所了解到的Elasticsearch,是个用于搜索的框架。 但是在学习的过程中,我看了很多的例程(springboot整合Elasticsearch),发现很少有涉及到Elasticsearch整合mysql(等数据库)。 **例程给我的感觉就是:不需要mysql里的数据,直接在Elasticsearch里新建个表,然后再在里面存数据来查询。** +++++ 问题来了,一个项目总该要用mysql、Oracle等数据库吧?Elasticsearch怎么查这些数据库里的数据呢?请大神解惑。 如果大神有相关的教程(基于Windows),还请贴出来让我了解是怎么回事,谢谢了

ElasticSearch6.8关联查询

ElasticSearch6.8中如何将两个索引中的Type进行关联查询

Elasticsearch分词与查询问题

使用ik分词器,存有两条记录 1、name:"花牛苹果300g" 2、name:"花牛" 然后做fuzzy查询 QueryBuilder qb = QueryBuilders.fuzzyQuery( "name", "花牛" ); SearchResponse sResponse = Tool.CLIENT.prepareSearch(indexName).setTypes(typeName).setQuery(qb).get(); logger.info(sResponse); 结果一条记录都没有 把关键词"花牛"换成"花苹果","牛苹果"都能搜到第一条记录"花牛苹果300g"(这个比较容易理解) 不理解的是为什么用"花牛"做关键词,什么都搜不到 使用"http://ip:port/indexName/_analyze?analyzer=ik&pretty=true&text=花牛苹果"查看分词结果如下 { "tokens" : [ { "token" : "花", "start_offset" : 0, "end_offset" : 1, "type" : "CN_CHAR", "position" : 0 }, { "token" : "牛", "start_offset" : 1, "end_offset" : 2, "type" : "CN_WORD", "position" : 1 }, { "token" : "苹果", "start_offset" : 2, "end_offset" : 4, "type" : "CN_WORD", "position" : 2 } ] } 难道因为"花牛"不是一个词的原因,但可以理解成两个但字词啊,用fuzzy为什么就搜不到,求大神解释,或者指一个解决方案

如何使用php-elasticsearch客户端从elasticsearch获取所有文档

<div class="post-text" itemprop="text"> <p>In one of my index, I've got the 80000 documents. I'm trying to get all the data in a single hit. There is a maximum limit of 10000 data. </p> <p>How do I can get all 80000 records at a time through php ?.</p> <p>I'm referring this URL <a href="https://packagist.org/packages/elasticsearch/elasticsearch" rel="nofollow noreferrer">https://packagist.org/packages/elasticsearch/elasticsearch</a></p> <pre><code>$params = [ "scroll" =&gt; "30s", "size" =&gt; 10000, "index" =&gt; $stdIndex, 'type' =&gt; $stdIndexType]; $response = $client-&gt;search($params); while (isset($response['hits']['hits']) &amp;&amp; count($response['hits']['hits']) &gt; 0) { $scroll_id = $response['_scroll_id']; $response = $client-&gt;scroll([ "scroll_id" =&gt; $scroll_id, "scroll" =&gt; "30s"] ); } </code></pre> </div>

elasticsearch搜索达不到预期

![为什么这里的搜索出来的不是厦门市中医院在前面,而是分院在前面啊](https://img-ask.csdn.net/upload/201709/18/1505716244_839702.jpg)

elasticsearch如何与前端建立连接呀?

想要做基于elasticsearch的搜索引擎,但是不清楚如何把elasticsearch的搜索结果在我自己的网页上显示。

关于elasticsearch的高亮显示

有没有人了解 elasticsearch 在长文本的搜索时 结果高亮字段 如何替换掉原字段 比如你的文章大概700字 而你内容的高亮结果集每个只有100个字符 如何替换到原文中 尤其是在ik分词器后

在windows上安装elasticsearch

<div class="post-text" itemprop="text"> <p>This might be duplicate of lot of questions...</p> <p>I am trying to install elasticsearch on windows with php. I followed below steps to install</p> <ol> <li>Download zip and extract to c:\elasticsearch-6.3.2</li> <li>Run .\bin\elasticsearch.bat through command line</li> <li>Run .\bin\elasticsearch.bat -Ecluster.name=my_cluster -Enode.name=node_1 through command line</li> </ol> <p>But when I try to access this url <a href="http://127.0.0.1:9200" rel="nofollow noreferrer">http://127.0.0.1:9200</a> or <a href="http://localhost:9200" rel="nofollow noreferrer">http://localhost:9200</a> through browser its showing </p> <blockquote> <p>"This site can’t be reached"</p> </blockquote> <p>I tried to run through command line also like</p> <pre><code>curl -XGET localhost:9200 </code></pre> <p>I am getting response as </p> <blockquote> <p>curl: (7) Failed to connect to localhost port 9200: Connection refused</p> </blockquote> <p>I google for above error but getting answers for centos or ubuntu and not for windows. Can anyone help, I am new to elasticsearch.</p> <p>Below is log generated as elasticsearch.log</p> <blockquote> <p>[2018-07-31T12:34:04,301][INFO ][o.e.n.Node ] [] initializing ... [2018-07-31T12:34:04,481][INFO ][o.e.e.NodeEnvironment ] [G_YkjaN] using [1] data paths, mounts [[Windows (C:)]], net usable_space [500.6mb], net total_space [100gb], types [NTFS] [2018-07-31T12:34:04,481][INFO ][o.e.e.NodeEnvironment<br> ] [G_YkjaN] heap size [998.4mb], compressed ordinary object pointers [unknown] [2018-07-31T12:34:04,484][INFO ][o.e.n.Node ] [G_YkjaN] node name derived from node ID [G_YkjaN2T66OvWgjV9A6uQ]; set [node.name] to override [2018-07-31T12:34:04,484][INFO ][o.e.n.Node<br> ] [G_YkjaN] version[6.3.2], pid[3576], build[default/zip/053779d/2018-07-20T05:20:23.451332Z], OS[Windows 8.1/6.3/x86], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_25/25.25-b02] [2018-07-31T12:34:04,485][INFO ][o.e.n.Node<br> ] [G_YkjaN] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users agkatke\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\elasticsearch-6.3.2, -Des.path.conf=C:\elasticsearch-6.3.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip] [2018-07-31T12:34:07,069][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [aggs-matrix-stats] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [analysis-common] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [ingest-common] [2018-07-31T12:34:07,070][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-expression] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-mustache] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-painless] [2018-07-31T12:34:07,071][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [mapper-extras] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [parent-join] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [percolator] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [rank-eval] [2018-07-31T12:34:07,073][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [reindex] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [repository-url] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [transport-netty4] [2018-07-31T12:34:07,074][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [tribe] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-core] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-deprecation] [2018-07-31T12:34:07,075][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-graph] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-logstash] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-ml] [2018-07-31T12:34:07,076][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-monitoring] [2018-07-31T12:34:07,077][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-rollup] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-security] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-sql] [2018-07-31T12:34:07,078][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-upgrade] [2018-07-31T12:34:07,079][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-watcher] [2018-07-31T12:34:07,080][INFO ][o.e.p.PluginsService ] [G_YkjaN] no plugins loaded [2018-07-31T12:34:11,043][INFO ][o.e.x.s.a.s.FileRolesStore] [G_YkjaN] parsed [0] roles from file [C:\elasticsearch-6.3.2\config oles.yml] [2018-07-31T12:34:11,361][ERROR][o.e.b.Bootstrap ] Exception org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/33475076.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.3.2.jar:6.3.2] [2018-07-31T12:34:11,372][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: ElasticsearchException[X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] Caused by: org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/33475076.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2] ... 6 more [2018-07-31T13:16:54,014][INFO ][o.e.n.Node ] [] initializing ... [2018-07-31T13:16:54,092][INFO ][o.e.e.NodeEnvironment ] [G_YkjaN] using [1] data paths, mounts [[Windows (C:)]], net usable_space [471.2mb], net total_space [100gb], types [NTFS] [2018-07-31T13:16:54,092][INFO ][o.e.e.NodeEnvironment<br> ] [G_YkjaN] heap size [998.4mb], compressed ordinary object pointers [unknown] [2018-07-31T13:16:54,092][INFO ][o.e.n.Node ] [G_YkjaN] node name derived from node ID [G_YkjaN2T66OvWgjV9A6uQ]; set [node.name] to override [2018-07-31T13:16:54,092][INFO ][o.e.n.Node<br> ] [G_YkjaN] version[6.3.2], pid[8796], build[default/zip/053779d/2018-07-20T05:20:23.451332Z], OS[Windows 8.1/6.3/x86], JVM[Oracle Corporation/Java HotSpot(TM) Client VM/1.8.0_25/25.25-b02] [2018-07-31T13:16:54,092][INFO ][o.e.n.Node<br> ] [G_YkjaN] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users agkatke\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\elasticsearch-6.3.2, -Des.path.conf=C:\elasticsearch-6.3.2\config, -Des.distribution.flavor=default, -Des.distribution.type=zip] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [aggs-matrix-stats] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [analysis-common] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [ingest-common] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-expression] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-mustache] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [lang-painless] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [mapper-extras] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [parent-join] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [percolator] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [rank-eval] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [reindex] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [repository-url] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [transport-netty4] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [tribe] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-core] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-deprecation] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-graph] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-logstash] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-ml] [2018-07-31T13:16:56,395][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-monitoring] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-rollup] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-security] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-sql] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-upgrade] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] loaded module [x-pack-watcher] [2018-07-31T13:16:56,411][INFO ][o.e.p.PluginsService ] [G_YkjaN] no plugins loaded [2018-07-31T13:17:00,453][INFO ][o.e.x.s.a.s.FileRolesStore] [G_YkjaN] parsed [0] roles from file [C:\elasticsearch-6.3.2\config oles.yml] [2018-07-31T13:17:00,828][ERROR][o.e.b.Bootstrap ] Exception org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/26927529.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.3.2.jar:6.3.2] [2018-07-31T13:17:00,843][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: ElasticsearchException[X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.3.2.jar:6.3.2] Caused by: org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:102) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearningFeatureSet.isRunningOnMlPlatform(MachineLearningFeatureSet.java:93) ~[?:?] at org.elasticsearch.xpack.ml.MachineLearning.createComponents(MachineLearning.java:370) ~[?:?] at org.elasticsearch.node.Node.lambda$new$7(Node.java:405) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node$$Lambda$1401/26927529.apply(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) ~[?:1.8.0_25] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) ~[?:1.8.0_25] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:1.8.0_25] at java.util.stream.ReferencePipeline.collect(Unknown Source) ~[?:1.8.0_25] at org.elasticsearch.node.Node.(Node.java:408) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.node.Node.(Node.java:252) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap$5.(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:213) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:326) ~[elasticsearch-6.3.2.jar:6.3.2] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.3.2.jar:6.3.2] ... 6 more</p> </blockquote> </div>

elasticsearch插入数据报错

之前用的elasticsearch是1.3.2版本的,装了ik插件,用起来很正常,后面elasticsearch换成2.0.0的了,还装了logstash2.0.0,kibana4.2.0, ik分词器是1.5.0的,用Java代码批量插入的时候就报错了,在elasticsearch的控制台手动插入是没问题的 [INFO][2016-11-16 18:22:34] org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:151) main [Agatha Harkness] loaded [analysis-jcseg], sites [] [INFO][2016-11-16 18:22:35] org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1.handleException(TransportClientNodesService.java:443) elasticsearch[Agatha Harkness][transport_client_worker][T#1]{New I/O worker #28} [Agatha Harkness] failed to get local cluster state for [#transport#-1][USER-20150529VW][inet[localhost/127.0.0.1:9300]], disconnecting... org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception response from stream Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize exception response from stream at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:173) at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443) at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268) at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.StreamCorruptedException: Unsupported version: 1 at org.elasticsearch.common.io.ThrowableObjectInputStream.readStreamHeader(ThrowableObjectInputStream.java:46) at java.io.ObjectInputStream.<init>(ObjectInputStream.java:299) at org.elasticsearch.common.io.ThrowableObjectInputStream.<init>(ThrowableObjectInputStream.java:38) at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:170) ... 23 more [WARN][2016-11-16 18:22:35] org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:135) elasticsearch[Agatha Harkness][transport_client_worker][T#1]{New I/O worker #28} [Agatha Harkness] Message not fully read (response) for [0] handler org.elasticsearch.client.transport.TransportClientNodesService$SniffNodesSampler$1$1@7e8c9412, error [true], resetting [INFO][2016-11-16 18:22:39] org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:862) Thread-1 Closing org.springframework.context.support.GenericApplicationContext@fbd1f6: startup date [Wed Nov 16 18:21:55 CST 2016]; root of context hierarchy [INFO][2016-11-16 18:22:39] org.elasticsearch.node.internal.InternalNode.stop(InternalNode.java:272) Thread-1 [Fer-de-Lance] stopping ... [INFO][2016-11-16 18:22:39] org.elasticsearch.node.internal.InternalNode.stop(InternalNode.java:310) Thread-1 [Fer-de-Lance] stopped

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

CSDN:因博主近期注重写专栏文章(已超过150篇),订阅博主专栏人数在突增,近期很有可能提高专栏价格(已订阅的不受影响),提前声明,敬请理解!

CSDN:因博主近期注重写专栏文章(已超过150篇),订阅博主专栏人数在突增,近期很有可能提高专栏价格(已订阅的不受影响),提前声明,敬请理解! 目录 博客声明 大数据了解博主粉丝 博主的粉丝群体画像 粉丝群体性别比例、年龄分布 粉丝群体学历分布、职业分布、行业分布 国内、国外粉丝群体地域分布 博主的近期访问每日增量、粉丝每日增量 博客声明 因近期博主写专栏的文章越来越多,也越来越精细,逐步优化文章。因此,最近一段时间,订阅博主专栏的人数增长也非常快,并且专栏价

我说我不会算法,阿里把我挂了。

不说了,字节跳动也反手把我挂了。

培训班出来的人后来都怎么样了?(二)

接着上回说,培训班学习生涯结束了。后面每天就是无休止的背面试题,不是没有头脑的背,培训公司还是有方法的,现在回想当时背的面试题好像都用上了,也被问到了。回头找找面试题,当时都是打印下来天天看,天天背。 不理解呢也要背,面试造飞机,上班拧螺丝。班里的同学开始四处投简历面试了,很快就有面试成功的,刚开始一个,然后越来越多。不知道是什么原因,尝到胜利果实的童鞋,不满足于自己通过的公司,嫌薪水要少了,选择...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

工作八年,月薪60K,裸辞两个月,投简历投到怀疑人生!

近日,有网友在某职场社交平台吐槽,自己裸辞两个月了,但是找工作却让自己的心态都要崩溃了,全部无果,不是已查看无回音,就是已查看不符合。 “工作八年,两年一跳,裸辞两个月了,之前月薪60K,最近找工作找的心态崩了!所有招聘工具都用了,全部无果,不是已查看无回音,就是已查看不符合。进头条,滴滴之类的大厂很难吗???!!!投简历投的开始怀疑人生了!希望 可以收到大厂offer” 先来看看网...

97年世界黑客编程大赛冠军作品(大小仅为16KB),惊艳世界的编程巨作

这是世界编程大赛第一名作品(97年Mekka ’97 4K Intro比赛)汇编语言所写。 整个文件只有4095个字节, 大小仅仅为16KB! 不仅实现了3D动画的效果!还有一段震撼人心的背景音乐!!! 内容无法以言语形容,实在太强大! 下面是代码,具体操作看最后! @echo off more +1 %~s0|debug e100 33 f6 bf 0 20 b5 10 f3 a5...

不要再到处使用 === 了

我们知道现在的开发人员都使用 === 来代替 ==,为什么呢?我在网上看到的大多数教程都认为,要预测 JavaScript 强制转换是如何工作这太复杂了,因此建议总是使用===。这些都...

什么是a站、b站、c站、d站、e站、f站、g站、h站、i站、j站、k站、l站、m站、n站?00后的世界我不懂!

A站 AcFun弹幕视频网,简称“A站”,成立于2007年6月,取意于Anime Comic Fun,是中国大陆第一家弹幕视频网站。A站以视频为载体,逐步发展出基于原生内容二次创作的完整生态,拥有高质量互动弹幕,是中国弹幕文化的发源地;拥有大量超粘性的用户群体,产生输出了金坷垃、鬼畜全明星、我的滑板鞋、小苹果等大量网络流行文化,也是中国二次元文化的发源地。 B站 全称“哔哩哔哩(bilibili...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

MySQL性能优化(五):为什么查询速度这么慢

前期回顾: MySQL性能优化(一):MySQL架构与核心问题 MySQL性能优化(二):选择优化的数据类型 MySQL性能优化(三):深入理解索引的这点事 MySQL性能优化(四):如何高效正确的使用索引 前面章节我们介绍了如何选择优化的数据类型、如何高效的使用索引,这些对于高性能的MySQL来说是必不可少的。但这些还完全不够,还需要合理的设计查询。如果查询写的很糟糕,即使表结构再合理、索引再...

用了这个 IDE 插件,5分钟解决前后端联调!

点击上方蓝色“程序猿DD”,选择“设为星标”回复“资源”获取独家整理的学习资料!作者 |李海庆我是一个 Web 开发前端工程师,受到疫情影响,今天是我在家办公的第78天。开发了两周,...

大厂的 404 页面都长啥样?最后一个笑了...

每天浏览各大网站,难免会碰到404页面啊。你注意过404页面么?猿妹搜罗来了下面这些知名网站的404页面,以供大家欣赏,看看哪个网站更有创意: 正在上传…重新上传取消 腾讯 正在上传…重新上传取消 网易 淘宝 百度 新浪微博 正在上传…重新上传取消 新浪 京东 优酷 腾讯视频 搜...

【高并发】高并发秒杀系统架构解密,不是所有的秒杀都是秒杀!

网上很多的文章和帖子中在介绍秒杀系统时,说是在下单时使用异步削峰来进行一些限流操作,那都是在扯淡! 因为下单操作在整个秒杀系统的流程中属于比较靠后的操作了,限流操作一定要前置处理,在秒杀业务后面的流程中做限流操作是没啥卵用的。

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

代码注释如此沙雕,会玩还是你们程序员!

某站后端代码被“开源”,同时刷遍全网的,还有代码里的那些神注释。 我们这才知道,原来程序员个个都是段子手;这么多年来,我们也走过了他们的无数套路… 首先,产品经理,是永远永远吐槽不完的!网友的评论也非常扎心,说看这些代码就像在阅读程序员的日记,每一页都写满了对产品经理的恨。 然后,也要发出直击灵魂的质问:你是尊贵的付费大会员吗? 这不禁让人想起之前某音乐app的穷逼Vip,果然,穷逼在哪里都是...

Java14 新特性解读

Java14 已于 2020 年 3 月 17 号发布,官方特性解读在这里:https://openjdk.java.net/projects/jdk/14/以下是个人对于特性的中文式...

爬虫(101)爬点重口味的

小弟最近在学校无聊的很哪,浏览网页突然看到一张图片,都快流鼻血。。。然后小弟冥思苦想,得干一点有趣的事情python 爬虫库安装https://s.taobao.com/api?_ks...

疫情后北上广深租房价格跌了吗? | Alfred数据室

去年3月份我们发布了《北上广深租房图鉴》(点击阅读),细数了北上广深租房的各种因素对租房价格的影响。一年过去了,在面临新冠疫情的后续影响、城市尚未完全恢复正常运转、学校还没开学等情况下...

面试官给我挖坑:a[i][j] 和 a[j][i] 有什么区别?

点击上方“朱小厮的博客”,选择“设为星标”后台回复&#34;1024&#34;领取公众号专属资料本文以一个简单的程序开头——数组赋值:int LEN = 10000; int[][] ...

又一起程序员被抓事件

就在昨天互联网又发生一起让人心酸的程序员犯罪事件,著名的百度不限速下载软件 Pandownload PC 版作者被警方抓获。案件大致是这样的:软件的作者不仅非法盗取用户数据,还在QQ群进...

应聘3万的职位,有必要这么刁难我么。。。沙雕。。。

又一次被面试官带到坑里面了。面试官:springmvc用过么?我:用过啊,经常用呢面试官:springmvc中为什么需要用父子容器?我:嗯。。。没听明白你说的什么。面试官:就是contr...

太狠了,疫情期间面试,一个问题砍了我5000!

疫情期间找工作确实有点难度,想拿到满意的薪资,确实要点实力啊!面试官:Spring中的@Value用过么,介绍一下我:@Value可以标注在字段上面,可以将外部配置文件中的数据,比如可以...

Intellij IDEA 美化指南

经常有人问我,你的 IDEA 配色哪里搞的,我会告诉他我自己改的。作为生产力工具,不但要顺手而且更要顺眼。这样才能快乐编码,甚至降低 BUG 率。上次分享了一些 IDEA 有用的插件,反...

【相亲】96年程序员小哥第一次相亲,还没开始就结束了

颜值有点高,条件有点好

太厉害了,终于有人能把TCP/IP 协议讲的明明白白了

一图看完本文 一、 计算机网络体系结构分层 计算机网络体系结构分层 计算机网络体系结构分层 不难看出,TCP/IP 与 OSI 在分层模块上稍有区别。OSI 参考模型注重“通信协议必要的功能是什么”,而 TCP/IP 则更强调“在计算机上实现协议应该开发哪种程序”。 二、 TCP/IP 基础 1. TCP/IP 的具体含义 从字面意义上讲,有人可能会认为...

腾讯面试题: 百度搜索为什么那么快?

我还记得去年面腾讯时,面试官最后一个问题是:百度/google的搜索为什么那么快? 这个问题我懵了,我从来没想过,搜素引擎的原理是什么 然后我回答:百度爬取了各个网站的信息,然后进行排序,当输入关键词的时候进行文档比对……巴拉巴拉 面试官:这不是我想要的答案 我内心 这个问题我一直耿耿于怀,终于今天,我把他写出来,以后再问,我直接把这篇文章甩给他!!! 两个字:倒排,将贯穿整篇文章,也是面试官...

相关热词 c# 开发接口 c# 中方法上面的限制 c# java 时间戳 c#单元测试入门 c# 数组转化成文本 c#实体类主外键关系设置 c# 子函数 局部 c#窗口位置设置 c# list 查询 c# 事件 执行顺序
立即提问