首页 文章 精选 留言 我的

精选列表

搜索[es],共3897篇文章
优秀的个人博客,低调大师

ES field store yes no 区别——可以设置为false,如果_source有的话

store By default, field values areindexedto make them searchable, but they are notstored. This means that the field can be queried, but the original field value cannot be retrieved. Usually this doesn’t matter. The field value is already part of the_sourcefield, which is stored by default. If you only want to retrieve the value of a single field or of a few fields, instead of the whole_source, then this can be achieved withsource filtering. In certain situations it can make sense tostorea field. For instance, if you have a document with atitle, adate, and a very largecontentfield, you may want to retrieve just thetitleand thedatewithout having to extract those fields from a large_sourcefield: PUT my_index { "mappings": { "my_type": { "properties": { "title": { "type": "text", "store": true }, "date": { "type": "date", "store": true }, "content": { "type": "text" } } } } } PUT my_index/my_type/1 { "title": "Some short title", "date": "2015-01-01", "content": "A very long content field..." } GET my_index/_search { "stored_fields": [ "title", "date" ] } COPY AS CURL VIEW IN CONSOLE Thetitleanddatefields are stored. This request will retrieve the values of thetitleanddatefields. 来自:https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-store.html 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6428653.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

ES doc_values介绍——本质是field value的列存储,做聚合分析用,ES默认开启,会占用存储空间(列存储压缩技巧,除公共除...

doc_values Doc values are the on-disk data structure, built at document index time, which makes this data access pattern possible.They store the same values as the_sourcebut in a column-oriented fashion that is way more efficient for sorting and aggregations.(本质!!!)Doc values are supported on almost all field types, with thenotable exception ofanalyzedstring fields. All fields which support doc values have themenabled by default. If you are sure thatyou don’t need to sort or aggregate on a field, or access the field value from a script, you can disable doc values in order to save disk space: PUT my_index { "mappings": { "my_type": { "properties": { "status_code": { "type": "keyword" }, "session_id": { "type": "keyword", "doc_values": false } } } } } Thestatus_codefield hasdoc_valuesenabled by default. Thesession_idhasdoc_valuesdisabled, but can still be queried. 摘自:https://www.elastic.co/guide/en/elasticsearch/reference/current/doc-values.html Column-store compression edit At a high level, doc values are essentially a serializedcolumn-store. As we discussed in the last section, column-stores excel at certain operations because the data is naturally laid out in a fashion that is amenable to those queries. But they also excel at compressing data, particularly numbers. This is important for both saving space on diskandfor faster access. Modern CPU’s are many orders of magnitude faster than disk drives (although the gap is narrowing quickly with upcoming NVMe drives). That means it is often advantageous to minimize the amount of data that must be read from disk, even if it requires extra CPU cycles to decompress. To see how it can help compression, take this set of doc values for a numeric field: Doc Terms ----------------------------------------------------------------- Doc_1 | 100 Doc_2 | 1000 Doc_3 | 1500 Doc_4 | 1200 Doc_5 | 300 Doc_6 | 1900 Doc_7 | 4200 ----------------------------------------------------------------- Thecolumn-stride layout means we have a contiguous block of numbers:[100,1000,1500,1200,300,1900,4200]. xxx Doc values use several tricks like this. In order, the following compression schemes are checked: If all values are identical (or missing), set a flag and record the value If there are fewer than 256 values, a simple table encoding is used If there are > 256 values, check to see if there is a common divisor If there is no common divisor, encode everything as an offset from the smallest value You’ll note that these compression schemes are not "traditional" general purpose compression like DEFLATE or LZ4.Because the structure of column-stores are rigid and well-defined, we can achieve higher compression by using specialized schemes rather than the more general compression algorithms like LZ4. You may be thinking"Well that’s great for numbers, but what about strings?"Strings are encoded similarly, with the help of an ordinal table. The strings are de-duplicated and sorted into a table, assigned an ID, and then those ID’s are used as numeric doc values.Which means strings enjoy many of the same compression benefits that numerics do. The ordinal table itself has some compression tricks, such as using fixed, variable or prefix-encoded strings. 摘自:https://www.elastic.co/guide/en/elasticsearch/guide/current/_deep_dive_on_doc_values.html 本文转自张昺华-sky博客园博客,原文链接:http://www.cnblogs.com/bonelee/p/6401466.html,如需转载请自行联系原作者

优秀的个人博客,低调大师

腾讯 APIJSON Demo 6.2•录制回放&全能接口; JS,ES,Redis,Kafka 等

APIJSON-Demo 腾讯 APIJSON 各种语言、各种框架 的 使用示例项目、上手文档、测试数据 SQL 文件 等。 6.1.0-6.2.0 更新内容: 新增全能增删改查接口,可同时进行 增、删、改、查 多种操作,感谢 cloudAndMonkey 贡献 CRUD 功能; MultiDataSource /delegate 新增录制&回放请求信息; 新增使用 SpringBoot 3.0+ 的 Demo;新增 RediSQL Demo,支持 Redis 零代码 CRUD,感谢 cloudAndMonkey 的贡献#31; MultiDataSource 为 APIJSON 和 SQLAuto 新增支持 Cassandra, Snowflake, Data, bricks InfluxDB; 远程函数:改用支持引用路径的 getArgVal 方法来取参数值; 优化 .gitignore 忽略文件,感谢 sjbwylbs 的贡献#33; 新增 JS, Lua 等动态脚本 Demo:APIJSONDemo-Script,更好地满足 低代码/零代码、Serverless, BaaS 等平台的动态业务逻辑需求,感谢@cloudAndMonkey的贡献#30; 新增全文检索&大数据 Elasticsearch Demo:APIJSONDemo-Elasticsearch和APIJSONDemo-MultiDataSource-Elasticsearch,感谢@cloudAndMonkey的贡献#27; 新增缓存 Redis Demo:APIJSONDemo-Redis,并在APIJSONBoot-MultiDataSource中加入 Redis 示例代码; 新增消息队列 Kafka Demo:APIJSONDemo-MultiDataSource-Kafka,感谢@cloudAndMonkey的贡献#29; Fix: 修改达梦数据库的sql脚本 1.修复Login表中双引号重复问题 2.修复Request表中detail字段超出达梦数据库长度限制问题,感谢@LeonemZhang的贡献#26; 具体见Release 发布版本 腾讯 APIJSON 简介 APIJSON 是一种专为 API 而生的 JSON 网络传输协议 以及 基于这套协议实现的 ORM 库。为各种增删改查提供了完全自动化的万能 API,零代码实时满足千变万化的各种新增和变更需求。 能大幅降低开发和沟通成本,简化开发流程,缩短开发周期。适合中小型前后端分离的项目。 自 2016 年 11 月开源 6 年来发展迅速,目前 15.8K Star 位居 400W Java 开源项目前 100。 国内 腾讯、华为、阿里巴巴、美团、字节跳动、百度、京东、网易、快手、圆通 等 和 国外 Google, Microsoft, Amazon, Paypal, IBM, Shopee 等数百名知名大厂员工点了 Star, 也有 腾讯、华为、字节跳动、Microsoft、Zoom、知乎 等 工程师 / 专家 / 架构师 提了 PR/Issue, 还被 腾讯、华为、百度、SHEIN、快手、中兴、传音、圆通、美图 等各大知名厂商用于各类项目。 APIJSON 九阴真经 - 软件开发行业的 ATM 机 接口全万能,前端不求人。要啥就有啥,所求即所得。 需求由它变,后端稳如山。不变应万变,上午就上线。 通过万能的 API,前端可以定制任何数据、任何结构。 大部分 HTTP 请求后端再也不用写接口了,更不用写文档了。 前端再也不用和后端沟通接口或文档问题了。再也不会被文档各种错误坑了。 后端再也不用为了兼容旧接口写新版接口和文档了。再也不会被前端随时随地没完没了地烦了。 为什么选择 APIJSON? 解决十大痛点(APIJSON 可大幅提振开发效率、强力杜绝联调扯皮、巧妙规避文档缺陷、非常节省流量带宽等) 开发提速很大(CRUD 零代码热更新全自动,APIJSONBoot 对比 SSM、SSH 等保守估计可提速 20 倍以上) 腾讯官方开源(使用 GitHub、Gitee、工蜂 等平台的官方账号开源,微信公众号、腾讯云+社区 等官方公告) 社区影响力大(GitHub 14K+ Star 在 400W+ Java 项目中排名前 100,远超 FLAG, BAT 等国内外绝大部分开源项目) 各项荣誉成就 (腾讯内外 5 个奖项、腾讯开源前九、腾讯后端项目 Star 第一、GitHub Java 日周月榜大满贯 等) 多样用户案例(腾讯内有互娱、音乐、微信、云与智慧等,外部包含华为、华能、百度、快手、中兴、传音、圆通等) 适用场景广泛(社交聊天、阅读资讯、影音视频、办公学习 等各种 App、网站、公众号、小程序 等非金融类项目) 周边生态丰富(Android, iOS, Web 等各种 Demo、继承 JSON 的海量生态、零代码 接口测试 和 单元测试 工具等) 文档视频齐全(项目介绍、快速上手、安装部署 等后端、前端、客户端的 图文解说、视频教程、代码注释 等) 功能丰富强大(增删改查、分页排序、分组聚合、各种条件、各种 JOIN、各种子查询、跨库连表 等零代码实现) 使用安全简单(自动增删改查、自动生成文档、自动管理版本、自动控制权限、自动校验参数、自动防SQL注入等) 灵活定制业务(在后端编写 远程函数,可以拿到 session、version、当前 JSON 对象 等,然后自定义处理) 高质可靠代码(代码严谨规范,商业分析软件源伞 Pinpoint 代码扫描报告平均每行代码 Bug 率低至 0.15%) 兼容各种项目(协议不限 HTTP,与其它库无冲突,对各类 Web 框架集成友好且提供 SpringBoot, JFinal 的 Demo) 工程轻量小巧(仅依赖 fastjson,Jar 仅 280KB,Java 文件仅 59 个共 13719 行代码,例如 APIJSONORM 4.3.1) 多年持续迭代(2016 年至今连续维护 6 年,累计 3000+ 次提交、90+ 次发版、50+ 个贡献者,不断更新迭代中...) 用户反馈 腾讯 IEG 数据产品开发组负责人 xinlin:“腾讯的 APIJSON 开源方案,它可以做到零代码生成接口和文档,并且整个生成过程是自动化。当企业有元数据的时候,马上就可以获得接口” 腾讯科技 后台开发高级工程师 雷大锤:“可以抽出时间来看apijson了,这个可以为T10做准备,也是业界很火的东西,可以提升个人影响力!” 腾讯 bodian520:“在调试GET、POST、PUT接口时遇到了一些问题,把个人的摸索经验分享一下,希望作者能梳理下文档,方便我们更好的接入” 华为 minshiwu:“demo工程,默认使用apijson-framework,可以做到无任何配置即可体验apijson的各种能力。” 字节跳动 qiujunlin:“初次见到这个项目,觉得太惊艳了,眼前一亮。给我的感受是,项目大大简化了开发流程,开发效率提升了很多倍。” 百度智慧城市 lpeng:“很兴奋的发现APIJSON很适合我们的一个开发场景,作为我们协议定义的一部分” 中兴 duyijiang:“感谢腾讯大大提供的框架,很好用” APIJSON 生态项目 apijson-frameworkAPIJSON 服务端框架,通过数据库表配置角色权限、参数校验等,简化使用 apijson-routerAPIJSON 的路由插件,可控地对公网暴露类 RESTful 简单接口,内部转成 APIJSON 格式请求来执行 apijson-columnAPIJSON 的字段插件,支持 字段名映射 和 !key 反选字段 APIAuto敏捷开发最强大易用的接口工具,机器学习零代码测试、生成代码与静态检查、生成文档与光标悬浮注释 UnitAuto机器学习零代码单元测试平台,零代码、全方位、自动化 测试 方法/函数 的正确性、可用性和性能 SQLAuto智能零代码自动化测试 SQL 语句执行结果的数据库工具,一键批量生成参数组合、快速构造大量测试数据 apijson-docAPIJSON 官方文档,提供排版清晰、搜索方便的文档内容展示,包括设计规范、图文教程等 APIJSON.NETC# 版 APIJSON ,支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite apijson-goGo 版 APIJSON , 基于Go(>=1.18) + GoFrame2, 支持查询、单表增删改、权限管理等 apijson-goGo 版 APIJSON ,支持单表查询、数组查询、多表一对一关联查询、多表一对多关联查询 等 apijson-hyperfPHP 版 APIJSON,基于 Hyperf 支持 MySQL APIJSON-phpPHP 版 APIJSON,基于 ThinkPHP,支持 MySQL, PostgreSQL, SQL Server, Oracle 等 apijson-phpPHP 版 APIJSON,基于 ThinkPHP,支持 MySQL, PostgreSQL, SQL Server, Oracle 等 apijson-node字节跳动工程师开源的 Node.ts 版 APIJSON,提供 nestjs 和 typeorm 的 Demo 及后台管理 uliweb-apijsonPython 版 APIJSON,支持 MySQL, PostgreSQL, SQL Server, Oracle, SQLite 等 APIJSON-ToDo-Demo一个简单的 todo 示例项目,精简数据,简化上手流程,带自定义鉴权逻辑 apijson-learnAPIJSON 学习笔记和源码解析 apijson-practiceBAT 技术专家开源的 APIJSON 参数校验注解 Library 及相关 Demo apijson-db2微软工程师接入 IBM 数据库 DB2 的 APIJSON 使用 Demo APIJSONDemo字节跳动工程师接入 ClickHouse 的 APIJSON 使用 Demo APIJSONDemo_ClickHouseAPIJSON + SpringBoot 连接 ClickHouse 使用的 Demo APIJSONBoot_HiveAPIJSON + SpringBoot 连接 Hive 使用的 Demo apijson-sampleAPIJSON 简单使用 Demo 及教程 apijson-examplesAPIJSON 的前端、业务后端、管理后端 Demo apijson-ruoyi【新】APIJSON 和 RuoYi 框架整合,实现零代码生成页面模板接口,在线维护 APIJSON 数据库配置等 api-json-demo基于 APIJSON,实现低代码写 CURD 代码,代替传统 ORM 框架,适配 Oracle 事务 apijson-builder一个方便为 APIJSON 构建 RESTful 请求的 JavaScript 库 APIJSON-Android-RxJava仿微信朋友圈动态实战项目,ZBLibrary(UI) + APIJSON(HTTP) + RxJava(Data) apijson-dynamic-datasource基于APIJSON,动态切换数据源、同一数据源批量操作事务一致性DEMO xyerp【新】基于ApiJson的低代码ERP quick-boot【新】基于 Spring Cloud 2022、Spring Boot 3、AMIS 和 APIJSON 的低代码系统。 apijson-query-spring-boot-starter【新】一个快速构建 APIJSON 查询条件的插件 感谢热心的作者们的贡献,点 ⭐Star 支持下他们吧~ 贡献者们 主项目 APIJSON 的贡献者们(6 个腾讯工程师、1 个微软工程师、1 个阿里云工程师、1 个知乎基础研发架构师、1 个字节跳动工程师、1 个网易工程师、1 个 Zoom 工程师、1 个圆通工程师、1 个智联招聘工程师、1 个美国加州大学学生、3 个 SUSTech 学生等): 生态周边项目的作者们(2 个腾讯工程师、1 个 BAT 技术专家、1 个微软工程师、2 个字节跳动工程师、1 个神州数码工程师&Apache dubbo2js 作者等): 感谢大家的贡献。 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构! https://gitee.com/APIJSON/APIJSON-Demo 创作不易、坚持更难,右上角点 ⭐Star 支持/收藏下吧 ^_^

资源下载

更多资源
Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

腾讯云软件源

腾讯云软件源

为解决软件依赖安装时官方源访问速度慢的问题,腾讯云为一些软件搭建了缓存服务。您可以通过使用腾讯云软件源站来提升依赖包的安装速度。为了方便用户自由搭建服务架构,目前腾讯云软件源站支持公网访问和内网访问。

Spring

Spring

Spring框架(Spring Framework)是由Rod Johnson于2002年提出的开源Java企业级应用框架,旨在通过使用JavaBean替代传统EJB实现方式降低企业级编程开发的复杂性。该框架基于简单性、可测试性和松耦合性设计理念,提供核心容器、应用上下文、数据访问集成等模块,支持整合Hibernate、Struts等第三方框架,其适用范围不仅限于服务器端开发,绝大多数Java应用均可从中受益。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册