ElasticSearch常用操作
查看某个INDEX库某个TYPE表,某个字段的分词结果
GET /${index}/${type}/${id}/_termvectors?fields=${fields_name}
http://192.168.124.64:9299/base_user_receive_120000/base_user_receive/09C67E111F04D249A58651B040459510A2D6CA2955DE745D158F4D77B96F5684/_termvectors?fields=full_address
{ "_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 }] } } } } }