Elasticsearch custom analyzer with custom pattern(自定义Analyzer的分词pattern)
来源:互联网 发布:apache svn服务器搭建 编辑:程序博客网 时间:2024/05/18 00:12
DELETE testindexPUT testindex{ "index" : { "analysis" : { "tokenizer" : { "comma" : { "type" : "pattern", "pattern" : "," } }, "analyzer" : { "comma" : { "type" : "custom", "tokenizer" : "comma" } } } }}PUT /testindex/_mapping/yourtype{ "properties" : { "contentType" : { "type" : "string", "analyzer" : "comma" } }}PUT /testindex/yourtype/1{ "contentType" : "1,2,3"}PUT /testindex/yourtype/2{ "contentType" : "3,4"}PUT /testindex/yourtype/3{ "contentType" : "1,6"}GET /testindex/_search{ "query": {"match_all": {}}}GET /testindex/_search{ "filter": { "term": { "contentType": "6" } }}
Indexing a comma separated value field in elastic search
0 0
- Elasticsearch custom analyzer with custom pattern(自定义Analyzer的分词pattern)
- 自定义分词器Analyzer
- Elasticsearch搜索引擎学习记录3-分词器(analyzer)应用
- Lucene的分词器Analyzer
- Lucene的分词器Analyzer
- Lucene的分词器Analyzer
- Lucene的分词器Analyzer
- solr中Analyzer(分词器)及其自定义
- Lucene内置的Analyzer分词器
- 简单的java中文分词IK Analyzer
- IK Analyzer分词工具(转载)
- Solr__luence(四)Analyzer分词器
- lucene 分词器Analyzer
- Lucene Analyzer(分词器)
- IK Analyzer 分词
- 中文分词 IK Analyzer
- Analyzer 中文分词器
- lucene Analyzer 分词 一
- 定时向文件写内容
- git-remote-https.exe-无法找到入口
- Cause: java.sql.SQLException: The user specified as a definer ('root'@'%') does not exist
- 32个兼职方法,总有一个适合你!
- Linux入门笔记——type、switch、help、man、apropos、whatis、info
- Elasticsearch custom analyzer with custom pattern(自定义Analyzer的分词pattern)
- 题目97 兄弟郊游问题
- Elasticsearch 5.0 简介(medcl微信直播实录)
- csdnListView上拉加载上拉刷新界面
- 51nod 1267 4个数和为0 哈希+二分
- Android 代码混淆机制
- HDU 5775 (树状数组)
- tjut 4639
- 题目98 成绩转换