
java
李先生的李
手机 一三五52096843
展开
-
非常好的nio经验分享
The Rox Java NIO TutorialContentsIntroductionCreditsGeneral principlesThe serverThe clientNIO and SSL on 1.4The codeAbout the authorIntroductionThis tutorial is intended to collect toget转载 2012-04-01 11:32:53 · 738 阅读 · 0 评论 -
ElasticSearch 使用Script排序时使用嵌套字段 Nested sorting when sorting by scripts
ES的文档在讲解Nested Sorting时,只简单说了一句支持脚本排序(https://www.elastic.co/guide/en/elasticsearch/reference/6.2/search-request-sort.html),但并没有给出具体的语法。我在一个项目需要基于一个嵌套字段进行脚本排序,摸索了好长时间才找出正确的语法结构,现分享出来,希望有类似需求的同学能节省一些时...原创 2018-06-26 18:17:48 · 5679 阅读 · 3 评论 -
Redis异常排查:Caused by: java.util.NoSuchElementException: Unable to validate object
线上出现以下异常:redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool at redis.clients.util.Pool.getResource(Pool.java:51) at redis.clients.jedis.JedisPool....原创 2018-07-16 16:34:39 · 8950 阅读 · 0 评论 -
5.5 ElasticSearch, 一次错误排查:使用嵌套结构体中的价格正序,结果却不是按照价格正序返回的。
使用Java开发,先在QueryQuilder中构建了nested query, 然后在SortBuilder中使用同一个nested object进行排序,因而nested_filter复用了QueryBuilder中的nested query, 大致的Query string如下: { "_source": ["*"], "from" : 0, "size" : 10, ...原创 2018-08-02 15:42:59 · 1409 阅读 · 0 评论