ElasticSearch常用操作

网友投稿 592 2022-09-13

ElasticSearch常用操作

ElasticSearch常用操作

查看某个INDEX库某个TYPE表,某个字段的分词结果

GET /${index}/${type}/${id}/_termvectors?fields=${fields_name}

"_index": "base_user_receive_120000", "_type": "base_user_receive", "_id": "09C67E111F04D249A58651B040459510A2D6CA2955DE745D158F4D77B96F5684", "_version": 6, "found": true, "took": 0, "term_vectors": { "full_address": { "field_statistics": { "sum_doc_freq": 64, "doc_count": 7, "sum_ttf": 85 }, "terms": { "北辰": { "term_freq": 1, "tokens": [{ "position": 7, "start_offset": 8, "end_offset": 10 }] }, "北辰区": { "term_freq": 1, "tokens": [{ "position": 6, "start_offset": 8, "end_offset": 11 }] }, "区": { "term_freq": 1, "tokens": [{ "position": 8, "start_offset": 10, "end_offset": 11 }] }, "堤": { "term_freq": 1, "tokens": [{ "position": 10, "start_offset": 12, "end_offset": 13 }] }, "天津": { "term_freq": 2, "tokens": [{ "position": 1, "start_offset": 0, "end_offset": 2 }, { "position": 4, "start_offset": 4, "end_offset": 6 }] }, "天津市": { "term_freq": 2, "tokens": [{ "position": 0, "start_offset": 0, "end_offset": 3 }, { "position": 3, "start_offset": 4, "end_offset": 7 }] }, "头": { "term_freq": 1, "tokens": [{ "position": 11, "start_offset": 13, "end_offset": 14 }] }, "津市": { "term_freq": 2, "tokens": [{ "position": 2, "start_offset": 1, "end_offset": 3 }, { "position": 5, "start_offset": 5, "end_offset": 7 }] }, "西": { "term_freq": 1, "tokens": [{ "position": 9, "start_offset": 11, "end_offset": 12 }] }, "镇": { "term_freq": 1, "tokens": [{ "position": 12, "start_offset": 14, "end_offset": 15 }] } } } }}

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:怎么用wait、notify巧妙的设计一个Future模式?(wait与notify使用场景)
下一篇:高并发之——不得不说的线程池与ThreadPoolExecutor类浅析(线程池corepoolsize)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~