08 2022 档案
摘要:分布式系统的session共享问题 目前大多数大型网站的服务器都采用了分布式服务集群的部署方式。所谓集群,就是让一组计算机服务器协同工作,解决大并发,大数据量瓶颈问题。但是在服务集群中,session共享往往是一个比较头疼的问题。因为session是在服务器端保存的,如果用户跳转到其他服务器的话,s
阅读全文
摘要:酒店数据的索引库结构 #酒店 mapping POST /hotle { "mappings": { "properties": { "id": { "type": "keyword" }, "name":{ "type": "text", "analyzer": "ik_max_word", "c
阅读全文
摘要:Query DSL https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html Elasticsearch Clients https://www.elastic.co/guide/en/elastic
阅读全文
摘要:elasticsearch的查询依然是基于JSON风格的DSL来实现的。 DSL查询分类 Elasticsearch提供了基于JSON的DSL(Domain Specific Language)来定义查询。常见的查询类型包括: (1) 查询所有:查询出所有数据,一般测试用。 例如:match_all
阅读全文
摘要:需求步骤 需求:利用BulkRequest批量将数据库数据导入到索引库中。 步骤如下: 利用mybatis-plus查询酒店数据。 将查询到的酒店数据(Hotel)转换为文档类型数据(HotelDoc)。 利用JavaRestClient中的BulkRequest批处理,实现批量新增文档。 语法说明
阅读全文
摘要:#查询es中的所有索引库GET /_cat/indices?v
阅读全文
摘要:(1)Trippin扯 如果一个人没有道理,你可以说you‘re ~ (2)Word好的,像我知道I know 或者 我同意I agree 听起来不错sounds good,你可以用word这个单词回答 Eg:studying english is hard word我同意 Eg: So you w
阅读全文
摘要:(1)You can do whatever you want to do,It's not someone telling you what is going to happen to you and to you life. It's about what you believe and how
阅读全文
摘要:日常口语 Just google it 谷歌一下就行 Just look it up 去搜一下吧 What should we eat?我们吃什么? What should we do?我们应该做什么? I'm extremely tired 我极其疲惫 It's extremely cold 真的
阅读全文
摘要:(1)Thirteen to nineteen 13到19的数字要强调第二个音节,但是thirty to ninety30到90的数字强调第一个音。 (2)St的发音,在单词的开头的话,念[st],stay(停留),stly,stupid;但是如果st是在中间或者在最后,有的时候st就不需要发音,e
阅读全文
摘要:equals()和hascode()区别?(字节1) 两个方法都能用来对比两个对象是否相等。区别在于:性能和可靠性; (1)性能上: equals对比的效率会比较低。 (2)可靠性上: 1. equals()对比是绝对可靠的,equals()相等的两个对象他们的hashCode()肯定相等。 2.
阅读全文
摘要:hashCode() 1 /** 2 * Returns a hash code value for the object. This method is 3 * supported for the benefit of hash tables such as those provided by 4
阅读全文
摘要:equals() 1 /** 2 * Indicates whether some other object is "equal to" this one. 3 * <p> 4 * The {@code equals} method implements an equivalence relatio
阅读全文