zoukankan      html  css  js  c++  java
  • 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
    					}]
    				}
    			}
    		}
    	}
    }
  • 相关阅读:
    Andorid中写文件后在电脑上看不到的解决办法
    【Android布局】在程序中设置android:gravity 和 android:layout_Gravity属性
    OpenCV入门学习笔记
    视频播放(iOS开发)
    音频播放(iOS开发)
    iPad开发(相对于iPhone开发时专有的API)
    静态库/内存分析/通讯录/换肤/硬件信息获取
    Alpha冲刺! Day1
    软工团队
    软工团队
  • 原文地址:https://www.cnblogs.com/hnsongbiao/p/10337762.html
Copyright © 2011-2022 走看看